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
How many types of inheritances used in php and how we achieve it.
How to receive a cookie from the browser?
Why do we use polymorphism in php?
What is the role of php.ini file?
How long is session timeout?
Write down the code for save an uploaded file in php.
How to convert strings to upper or lower cases?
How to create a web form?
What is __ construct in php?
What version of php do I have windows?
What is a query give example?
What are psrs?
What is the use of ajax in php?
What does php exit do?
What are string functions?