Solved

Session Cookie creation

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create an MVC5, Razor Widget 2 26
Question about JQuery and asp.net 3 30
VB.NET Textbox input validation 4 37
Running powershell scripts from ASP.NET 6 29
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…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
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…

856 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