Can i still store value in session if in browser cookie is disabled?
Can i still store value in session if in browser cookie is开发者_开发百科 disabled?
You can use Cookieless Sessions.
In ASP.NET, the necessary session-to-user link may optionally be established without using cookies. Interestingly enough, you don't have to change anything in your ASP.NET application to enable cookieless sessions, except the following configuration setting.
<sessionState cookieless="true" />
You didn't say what language you're working in, though the previous answer seems to assume you're working in ASP.NET. If you're working in Java, the HttpSession (server-side construct) holds values which are independent of cookies. In oher words, you can store sesson vaues on the server regardless of whether the client side browser has enabled cookies.
精彩评论