...

View Full Version : Changing global / Predefined variables in PHP



amol0010
01-10-2008, 06:03 PM
Hi,

I had my site working earlier in HT Access authentication. This registered the global variable $HTTP_AUTH_USER as the authenticated user on my website.
HOwever, due to changed requirements, I am now using sessions.


What I want to do is change the $HTTP_AUTH_USER to PHPSESSID['ulogin'] instead.

Is there a way to override $HTTP_AUTH_USER on all pages that changes it to PHPSESSID thing instead ?


THe sessionid thing starts once the user logs in using sessions.


Thanks

Fumigator
01-10-2008, 06:32 PM
Use find/replace?

amol0010
01-10-2008, 10:00 PM
Could you elaborate a little more please ?

Thanks

Death_oClock
01-10-2008, 10:04 PM
I assume he means using your favorite text editor, replace all occurrences of $HTTP_USER_AUTH with PHPSESSID['ulogin']. Most good editors will have a feature to replace all.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum