• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 891
  • Last Modified:

Cookieless session

The value of cookieless attribute in the sessionState elemet of the Web.Config file has a default value=false, which means according to msdn: Indicates that sessions without cookies should not be used, does this means that if a client is not enabling cookies, that means it is not possible to store values in the session object? Shall I change it to true to be able to use session varaibles or what?

Please correct me cos it seems I'm missing some point here that I don't understand.
What I want to know if I used the session object and the user is disabling cookies that means that my values are not saved?

Thanks.
0
JessyEzzy
Asked:
JessyEzzy
  • 3
  • 3
1 Solution
 
davidlars99Commented:
@ which means according to msdn: Indicates that sessions without cookies should not be used

can I see that article..?


and yes, if client has cookies disabled sessions will not work, but there's always a way to avoid sessions and not worry about cookies... use "Cache" instead of session

Cache("myvalue")="I am Cache..!"

0
 
JessyEzzyAuthor Commented:
Ok, the cache object is a solution, but as I said, if I set the cookieless attribute to true, does it means that sessions will work even though the client has cookies disabled?

Here is the msdn article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfsessionstatesection.asp

Thanks.
0
 
davidlars99Commented:
yes it will and what happens it that, you'll notice when you use cookieless session your url will look like this

http://localhost/asp.net/samples/(djjsdkdmdsldkl)yourasppage.aspx

and this will be the session identifier > (djjsdkdmdsldkl)
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
davidlars99Commented:
why don't use try it?
0
 
JessyEzzyAuthor Commented:
Ok i'll try it, but which is better now, using the cache object or session?
0
 
JessyEzzyAuthor Commented:
I guess i'll be using the Cache object and if u recommend Session please tell me.
Thanks.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now