aspose file tools*
The moose likes Security and the fly likes Issue with copy pasting the URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Issue with copy pasting the URL" Watch "Issue with copy pasting the URL" New topic
Author

Issue with copy pasting the URL

thiruselvan
Greenhorn

Joined: Sep 30, 2008
Posts: 5
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.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there and welcome to Javaranch,

It helps a great deal if you TellTheDetails. What technology are you using? JSF? JSP? Struts?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
thiruselvan
Greenhorn

Joined: Sep 30, 2008
Posts: 5
We use java and xsl.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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!
Jason Pirkey
Greenhorn

Joined: Aug 06, 2008
Posts: 9
You could use ACEGI/Spring Security. It can perform URL based security.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42951
    
  72
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

Joined: Aug 06, 2008
Posts: 9
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with copy pasting the URL