Hi all,
I need to set two cookies when a user logs onto our website. The first is to set the sessid for the site. The second is to set a second cookie with the same value but with the domain specified for another secured url since I need to grab the sessid when I pass the user to the secured domain.
so as a basic example:
Setting the first is no problem. But no matter what I do when I set the second "sslid". when I send the user to the the secured domain and try to get the cookie I get nothing. Do I have to set the cookie for "sslid" while the user is in that domain? Is the format Im using for specifying the domain incorrect?
I need to set two cookies when a user logs onto our website. The first is to set the sessid for the site. The second is to set a second cookie with the same value but with the domain specified for another secured url since I need to grab the sessid when I pass the user to the secured domain.
so as a basic example:
Code:
procedure output-header:
/* for site domain "[URL]http://www.mysite.com[/URL]" */
set-cookie("sid", string(v-session-id),?,?,?,?,?).
/* for secure domain "[URL]https://secure.mysite.com[/URL]" */
set-cookie("sslid", string(v-session-id),?,?,?,"secure.mysite.com","Secure").
output-content-type ("text/html":U).
end procedure.
Setting the first is no problem. But no matter what I do when I set the second "sslid". when I send the user to the the secured domain and try to get the cookie I get nothing. Do I have to set the cookie for "sslid" while the user is in that domain? Is the format Im using for specifying the domain incorrect?