• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Issue with copy pasting the URL

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me out with the following issue.

If I paste the url from my current browser window to new browser window I am able to view the related page in the new window. Instead i should redirect the user to the Login Page.

Thanks in advance.
 
author
Posts: 3281
7
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there and welcome to Javaranch,

It helps a great deal if you TellTheDetails. What technology are you using? JSF? JSP? Struts?
 
thiruselvan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We use java and xsl.
 
Martijn Verburg
author
Posts: 3281
7
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you need to introduce some Session Management and/or page expiry (e.g. When should a session expire), here is a link to an introduction on sessions in Java, hopefully that helps get you started!
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use ACEGI/Spring Security. It can perform URL based security.
 
Rancher
Posts: 43009
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a client side issue, so I don't think any server software will solve it. If I interpret it correctly, then the question is about why a new window transmits cookies that were set in a different window. Different browsers handle this in different ways, so there may not be much that the web app can do about it.

Why is the behavior you describe a problem? Why should a user need to log in twice just to run an application in two windows?
[ September 30, 2008: Message edited by: Ulf Dittmer ]
 
Jason Pirkey
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf,

You could be correct. I took the problem to be if they copied the URL. Manually opened a new browser before or after closing any browsers currently open and then pasted the URL.

I know IE will copy some stuff from the open browser to any browser the browser opens. I hope you understand what I mean here.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!