Jump to content

[SOLVED] referring URI without HTTP_REFERER


wrathican

Recommended Posts

hey

 

i was just wondering if there is an alternative way of seeing what the referring URI was in php other than HTTP_REFERER.

 

this is mainly because my host does not have that variable enabled. (i think. its not listed when i call phpinfo())

 

but i would like to provide a bit of simplicity for my users so that if they are trying to access a page where they need to be logged in, they are taken to the login page and the referring URI is kept so i can forward them back to that page when they have successfully logged in.

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.