BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Response.Cookies.Add

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
Stephane Vander Clock
Guest





PostPosted: Mon Feb 16, 2004 9:31 am    Post subject: Response.Cookies.Add Reply with quote



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





PostPosted: Mon Feb 16, 2004 2:20 pm    Post subject: Re: Response.Cookies.Add Reply with quote



"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.

Quote:
Expires=??

Don't set this if you want the cookie only to be good for the session.

Quote:
Path=??

This is also optional. You probably don't need to set it.

Quote:
Secure=??

Set this to true if you are using SSL (https).

--
-Jimmy



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.