http - JSP session for each IP address or for each browser -


I want to know whether a session is created for each IP address or for each browser instance?

I opened my JSP application in three browser windows. It makes three different sessions? Let's say I want to use a session for more than one instance of the browser, is it possible or not?

No, this is not possible (in fact, on the way to define this "browser example" Depending on whether the session is supported by a robbery such cookie is browser-instance-specific. In each browser example, the disk file system has its own set of saved cookies. It can not be shared between different browsers (IE, FF, Chrome, etc.). However it is shared in different tabs / windows of the same browser instance.

You can use the IP address along with an IP address in a large circle and save it, for example the area of ​​application or a database, though there are some problems: it is the same IP address Behind many users, such as behind a proxy, a large company network will not work for dynamic people rather than static IP addresses.

The cookie or user authentication mechanism (register, login, etc.) is the most reliable way to track a unique and personal user, among different HTTP requests.


Comments