• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

is it possible to manually give one session?

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have two pages one is for user and another for admin.
when you login from the user then i am setting the session inactive interval as
session.setMaxInactiveInterval(600);
and for admin, the session inactive period is 60 and i am setting this as session.setMaxInactiveInterval(60);
Suppose when i login from the browser user and from the same browser i login admin then for the pages the session inactive period is set as 60 seconds.
So i wanted any help to get rid of this problem
 
Ranch Hand
Posts: 384
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can only have one active session per web application per web browser.
So as in your case when you re-login as admin the same session's inactive interval is reset.
 
suki sahu
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Lalit Mehra wrote:You can only have one active session per web application per web browser.
So as in your case when you re-login as admin the same session's inactive interval is reset.


Any solutions to get rid off this idea?
Cant i give two session inactive times?
If not then how to login as a user and as a admin from the same browser and at the same time?
 
Lalit Mehra
Ranch Hand
Posts: 384
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

suki sahu wrote:
Any solutions to get rid off this idea?
Cant i give two session inactive times?
If not then how to login as a user and as a admin from the same browser and at the same time?



I think you didn't read the reply properly.
 
We don't have time for this. We've gotta save the moon! Or check this out:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic