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 can we enable error reporting in php?
Does php have future?
Which operator is used to concatenate two strings in PHP?
Can we override static method in php?
Tell me how is it possible to return a value from a function?
what is constructor
What is php and sql?
How to execute a function in php?
Is php is dying?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.
How do I stop a php script?
How to replace a substring in a given string in php?
What are the special characters you need to escape in double-quoted stings?
What is escaping to php?
Tell us how to set cookies in php?