homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

$_SERVER['php self'] and MOD Rewrite
Login woes

 7:51 pm on Jul 8, 2006 (gmt 0)

When a user hits a restricted page, I store a session_var holding the desired url, then I direct them over to the login page. If the login is successful I send them back to where they came from.

The problem is that with mod_rewrites in place, $_SERVER['php self'] and referer, and URI all pull up the ACTUAL url (so in my case it pulls up the .PHP files instead of my re-written .HTML files). So the redirect will be incorrect.

So how does one solve this problem with the least amount of work?



 9:39 pm on Jul 8, 2006 (gmt 0)

Stuff the
$_SERVER['REQUEST_URI'] value into your saved URI session variable.
Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved