Whether session will work if we disable cookies in client
browser ?
Answer Posted / sandip gend
Yes..
If you want to disable the use of cookies in your ASP.NET application and still make use of session state,
you can configure your application to store the session identifier in the URL instead of a cookie by setting the
cookieless attribute of the sessionState configuration element to true, or to UseUri, in the Web.config file for
your application.
The following code example shows a Web.config file that configures session state to use cookieless session
identifiers.
Code:
<configuration>
<system.web>
<sessionState
cookieless="true"
regenerateExpiredSessionId="true"
timeout="30" />
</system.web>
</configuration>
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Tell me what are the functions to be used to get the image's properties (size, width and height)?
What is local variable in php?
What is composer phar?
How to track no of user logged in?
Explain me soundex() and metaphone()?
How do I check if a given variable is empty?
Why do we use in php?
Is php pass by reference or value?
How to access a Static Member of a Class in PHP?
Explain converting an object?
What is basic php?
Does browser understand php?
Which is the correct way to check if a session has already been started ?
How do I escape data before storing it in the database?
What does php mean?