Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi! I´m starting an online store project and this session x cookies thing is not very clear to me.

Whats the diference in using session variables, since it uses a cookie in the client?

What if the client disable cookies in the browser?Will the session variables still work?

Is it ok to use session variables for a site that will have 100 users simultaneusly?

 

 

Thanks for the help!

  • *Gurus*
Posted

Sessions will not work if cookies are disabled on the client unless the session configuration (in web.config) has the attribute "cookieless" set to true. Generally speaking, that isn't an advisable solution.

 

And yes, it's fine to use session variables on a site with 100 concurrent users. Just be wise as to what you store in each user's session. Keep the data as compact as possible.

  • *Gurus*
Posted
Well, you need to use either a cookie or a session hash located in the URI's query string or path info. There aren't any other alternatives. Amazon.com uses the session hash method which I find to be a more compatible solution to cookies, although harder to work with from a development standpoint.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...