SESSION VARIABLES
Permalink
I have a validation PHP script that confirms that a user name/password is valid (in a database table that I added to C5). If it is valid, I set a couple of SESSION variables. The thing is when the script is done and I load another page, the new page does not see the SESSION variables. I think this is because the new page is part of the C5 session but the validation page was not. (I put in the defined('C5_EXECUTE') or die("Access Denied."); statement in both files and it failed in the validation script. The validation script lives in a subdirectory off my main directory which is in the Themes directory. Obviously I am not doing sopmething right. THIS IS NOT A CASE OF having or not having session_start() statement. I tried all possible combinations. I think this is because the validatiion page is not seen by C5 as part of the session. What should I be doing to fix this? Any help would be appreciated.