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


Please Help Members By Posting Answers For Below Questions

What is final in php?

610


What is good average session duration?

631


What is data abstraction in php?

661


What are the encryption techniques in php?

625


What is split function in php?

589






What is the difference between php 5 and php 7?

559


What are the characteristics of php?

646


Is php free to use?

628


Which will check if a function exists?

684


What is member variable?

631


What are getters and setters php?

630


What is an operator in php?

652


How to check a key exist in an array?

665


Can we run php on tomcat server?

652


What are php parameters?

608