Solved

Session Cookie creation

Posted on 2014-02-24
4
190 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
  • 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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