Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with encodeURL()

Status
Not open for further replies.

hazelsisson

Programmer
Joined
Mar 18, 2002
Messages
68
Location
GB
Hello!
I have created a page that just passes people on to a different page, like this:

...
<head>
<%out.println(&quot;Loading...&quot;);%>
<meta http-equiv=&quot;REFRESH&quot; content=&quot;0;
URL=<%=response.encodeURL(&quot;absoluteUrl&quot;)%>&quot;>
</head>
...

This works fine when cookies are enabled.
But when they are not, it doesn't keep the session going and before you see the next page it takes you back to the login page. The condition for going back to the login page is if there is no session.
This has led me to believe that it is the encodeURL bit that is causing the problems! I have tried using encodeRedirectURL() too but that does the same.
Does anyone have any idea why it's not working?
Thanks,
Hazel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top