开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜