I have written the following code to set cookies for session ID and user ID:
<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
<script language="Speedscript">
run set-sid(input v-user-id,
input "Logged In",
output v-sic,
output v-uic,
output v-sid,
output v-uid).
</script>
<script language="Speedscript">
Procedure output-headers:
set-cookie("Jooky","Jooky",?,?,?,?,?).
set-cookie(v-sic,v-sid,?,?,?,?,?).
set-cookie(v-uic,v-uid,?,?,?,?,?).
end procedure.
</script>
[/code]
Currently, the only cookie that gets set is "jooky". The other 4 variables
are all being set proparly by the earlier procedure call. I'm wondering of
you can use variables like this to set a cookie, or does it always have to
be a literal. It wouldn't seem practical to only allow literal cookies, but
all the Webspeed examples I have found so far are always setting literal
cookies. I'm thinking my variables may not be set when the procedure is
called.
Any help would be appreciated.
Roland Schaer
Senior Programmer/Analyst
RAM Software Systems, Inc.
Roland.Schaer@ramsys.com
972-669-0763
<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
<script language="Speedscript">
run set-sid(input v-user-id,
input "Logged In",
output v-sic,
output v-uic,
output v-sid,
output v-uid).
</script>
<script language="Speedscript">
Procedure output-headers:
set-cookie("Jooky","Jooky",?,?,?,?,?).
set-cookie(v-sic,v-sid,?,?,?,?,?).
set-cookie(v-uic,v-uid,?,?,?,?,?).
end procedure.
</script>
[/code]
Currently, the only cookie that gets set is "jooky". The other 4 variables
are all being set proparly by the earlier procedure call. I'm wondering of
you can use variables like this to set a cookie, or does it always have to
be a literal. It wouldn't seem practical to only allow literal cookies, but
all the Webspeed examples I have found so far are always setting literal
cookies. I'm thinking my variables may not be set when the procedure is
called.
Any help would be appreciated.
Roland Schaer
Senior Programmer/Analyst
RAM Software Systems, Inc.
Roland.Schaer@ramsys.com
972-669-0763