Hi
I have an application that has to allow access to users that come from another web application. If a user access the application using a URL or coming from another web application it should deny access. We can't use cookies because this application has to work with WAP 1.0. Any Ideas?
Regards,
Néstor Boscán
-
How to force access coming from another page (2 messages)
- Posted by: Nestor Boscan
- Posted on: April 20 2006 12:59 EDT
Threaded Messages (2)
- How to force access coming from another page by Emil Kirschner on April 21 2006 07:57 EDT
- How to force access coming from another page by Nestor Boscan on April 23 2006 00:36 EDT
-
How to force access coming from another page[ Go to top ]
- Posted by: Emil Kirschner
- Posted on: April 21 2006 07:57 EDT
- in response to Nestor Boscan
yup,
there is a HTTP header named HTTP_REFERER: http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z14
the value of this header will basically tell from which url which contains the link that sent the user to your page.
In a servlet or a jsp you can obtain it using req.getHeader("Referer"), where req is your http request object.
cheers,
Emil ( http://www.thekirschners.com/software/testare/testare.html ) -
How to force access coming from another page[ Go to top ]
- Posted by: Nestor Boscan
- Posted on: April 23 2006 00:36 EDT
- in response to Emil Kirschner
Hi
I don't think this will work with WAP browsers. You can't trust that they will send the attribute.
Regards,
Néstor Boscán