Solved

Session Cookie creation

Posted on 2014-02-24
4
192 Views
Last Modified: 2014-02-24
How are Session Cookies created? As a web developer you don't  write code to create them. They are created automatically correct?

If automatically, how so? What creates them?
0
Comment
Question by:metro156
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39883385
Normally, the IIS web server creates a 'session cookie' for any page request where one is not already set.  Although this page is about older versions of IIS, it has the basic info: http://support.microsoft.com/kb/244465/EN-US   You can find a lot more detailed info about newer versions and setting the 'parameters'.
0
 

Author Comment

by:metro156
ID: 39883411
Can you modify a session cookie?
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39883514
I suppose you can.  But, since the purpose of the cookie is to identify a session, if the web server encountered a modified cookie that didn't correspond to a current session, it would overwrite it on the next page request.  This is what the info for a session cookie looks like.
ASP Session Cookie
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39883536
If it's the session data you want to modify, that is not in the cookie.  That is in the files on the server that are identified by the info in the cookie.  If you save info in session variables and then change the Content in the session cookie, you will loose the info in the session variables because the session id will be wrong.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question