Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Are Sessions Working?

DZone's Guide to

Are Sessions Working?

·
Free Resource
//
You can use this piece of code to check if it is possible to use sessions for the visitor.

This can come handy for login pages. If you have cookies disabled and try to login, no login session can be used. In such cases it is nice to inform your visitors. 



  
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}