ASP.NET2.0 cookieless vs cookie sessions

  • Thread starter Thread starter maboo59
  • Start date Start date
M

maboo59

when using ASP.NET 2.0, if you set 'cookieless session = fales'
(meaning you want to use cookies), is the session information stored in
a cookie on the client machine or in the browsers memory?

Thanks
Maboo
 
if you want to persist the cookie then it is stored on the client machine
otherwise during actual communication it is stored in memory.
cookies can expire.

Lit
 
The information needed to track the session is stored in a non permanent
cookie (not stored on disk) at least in IE (could be browser dependent).

Note all other session information are not sent accross the wire...

(not sure if the question is focused on the session id or all session
information).
 
Lit,
Are yo saying that there is a setting that tells the site to write to
client machine or store in memory?

Maboo
 
The Expires property of the HttpCookie class makes a cookie persistent and
sets a date when a cookie will expire.
A persistent cookie enables a website to remember you on subsequent visits,
speeding up or enhancing your experience of services or functions offered.

you can also set things in web.config.
a Cookie is automatically in memory anyway.

Store what every info you want in a cookie and it is good to encrypt your
cookie also.

Lit
 
good stuff Lit
thanks
The Expires property of the HttpCookie class makes a cookie persistent and
sets a date when a cookie will expire.
A persistent cookie enables a website to remember you on subsequent visits,
speeding up or enhancing your experience of services or functions offered.

you can also set things in web.config.
a Cookie is automatically in memory anyway.

Store what every info you want in a cookie and it is good to encrypt your
cookie also.

Lit
 
good stuff Lit
thanks
The Expires property of the HttpCookie class makes a cookie persistent and
sets a date when a cookie will expire.
A persistent cookie enables a website to remember you on subsequent visits,
speeding up or enhancing your experience of services or functions offered.

you can also set things in web.config.
a Cookie is automatically in memory anyway.

Store what every info you want in a cookie and it is good to encrypt your
cookie also.

Lit
 
when you use cookie sessions, then the session id is stored in the cookie.
the actual session data in stored on the server by the session manager.

when you use cookieless sessions, the session id is encode in the url.

http://mysite.com/myapp/<sessionid>/mypage.aspx

-- bruce (sqlwork.com)
 
when we set cookies to false it means information is not stored on the
client side
 
hi..

this is shiv.this is regarding ur question for the cookieless
session. actually when the user visits a site for the very first time, a
unique ID is created, called SessionId, that works for the user untill
he is on the site.
The Session ID is usually stored in the user's cookies. If 'cookieless
session = false' is set then it is not stored in cookies, it passes
through the URL.It is stored as part of the URL
as

http://www.shiv.com/(anf63t87iq0arjlqla2l55)/cutomdetails.aspx
 
Back
Top