• Post Reply Bookmark Topic Watch Topic
  • New Topic

restict the user to open a new browser  RSS feed

 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I developed an web application where users enter their username and password to login. But when they copy the URL and paste it to another browser it displays the welcome page. But i need to be display some error page like Session already in use or session timed out.. please help me regards this...

[ June 14, 2008: Message edited by: Bear Bibeault ]
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rajkumar ,

In this case you maintain session properly.

when user enter put his username or whatever into the session..then redirect to the welcome page..in welcome page you check if session variable is null..then you send error page

(or)


using <web-resource-collection> tag restrict the welcome page from direct access in web.xml(DD)


Thanks & regards,
seetharaman.v
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Seetharaman,
i have tried your first solution but it not works fine.
Will you please explain me the second solution because i am not aware of that much. Thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!