471,601 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,601 software developers and data experts.

ASP.NET2.0 cookieless vs cookie sessions

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

Jun 2 '06 #1
8 1729
Lit
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
"maboo59" <mt******@verizon.net> wrote in message
news:11**********************@f6g2000cwb.googlegro ups.com...
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

Jun 2 '06 #2
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).
--
Patrice

"maboo59" <mt******@verizon.net> a écrit dans le message de news:
11**********************@f6g2000cwb.googlegroups.c om...
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

Jun 2 '06 #3
Lit,
Are yo saying that there is a setting that tells the site to write to
client machine or store in memory?

Maboo

Lit wrote:
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
"maboo59" <mt******@verizon.net> wrote in message
news:11**********************@f6g2000cwb.googlegro ups.com...
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


Jun 2 '06 #4
Lit

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


"maboo59" <mt******@verizon.net> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Lit,
Are yo saying that there is a setting that tells the site to write to
client machine or store in memory?

Maboo

Lit wrote:
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
"maboo59" <mt******@verizon.net> wrote in message
news:11**********************@f6g2000cwb.googlegro ups.com...
> 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
>

Jun 2 '06 #5
good stuff Lit
thanks

Lit wrote:
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


"maboo59" <mt******@verizon.net> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Lit,
Are yo saying that there is a setting that tells the site to write to
client machine or store in memory?

Maboo

Lit wrote:
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
"maboo59" <mt******@verizon.net> wrote in message
news:11**********************@f6g2000cwb.googlegro ups.com...
> 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
>


Jun 2 '06 #6
good stuff Lit
thanks

Lit wrote:
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


"maboo59" <mt******@verizon.net> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Lit,
Are yo saying that there is a setting that tells the site to write to
client machine or store in memory?

Maboo

Lit wrote:
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
"maboo59" <mt******@verizon.net> wrote in message
news:11**********************@f6g2000cwb.googlegro ups.com...
> 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
>


Jun 2 '06 #7
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)

"maboo59" <mt******@verizon.net> wrote in message
news:11**********************@f6g2000cwb.googlegro ups.com...
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

Jun 2 '06 #8


when we set cookies to false it means information is not stored on the
client side

*** Sent via Developersdex http://www.developersdex.com ***
May 1 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Scott | last post: by
2 posts views Thread by Tom Pester | last post: by
4 posts views Thread by moondaddy | last post: by
2 posts views Thread by Daniel Malcolm | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.