| View previous topic :: View next topic |
| Author |
Message |
Stephane Vander Clock Guest
|
Posted: Mon Feb 16, 2004 9:31 am Post subject: Response.Cookies.Add |
|
|
hello,
does the code below good :
with Response.Cookies.Add do begin
Name := 'sessionid';
Value := inttostr(UserSessionNode^.ID);
end;
or did i need also to add this :
Domain=??
Expires=??
Path=??
Secure=??
I want a session cookie that lives until they close the browser.
thank you by advance
stephane vander clock
|
|
| Back to top |
|
 |
Jimmy [Used-Disks] Guest
|
Posted: Mon Feb 16, 2004 2:20 pm Post subject: Re: Response.Cookies.Add |
|
|
"Stephane Vander Clock" <svanderclock (AT) yahoo (DOT) fr> wrote
| Quote: | hello,
does the code below good :
with Response.Cookies.Add do begin
Name := 'sessionid';
Value := inttostr(UserSessionNode^.ID);
end;
|
That should be fine.
| Quote: | or did i need also to add this :
Domain=??
|
You probably don't need to set Domain except under special circumstances.
Don't set this if you want the cookie only to be good for the session.
This is also optional. You probably don't need to set it.
Set this to true if you are using SSL (https).
--
-Jimmy
|
|
| Back to top |
|
 |
|