Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » How do I use a GLOBALS or _SESSION field selection
Re: How do I use a GLOBALS or _SESSION field selection [message #664 is a reply to message #663] Fri, 02 March 2007 10:50 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2368
Registered: April 2006
Location: Surrey, UK
Senior Member
There is no value in $_SESSION['role_id'] until AFTER the session_start() function has been issued, which is done within the initSession() function. This in turn is called within each of the page controllers, so no session variables can be accessed within a component script. You will have to use one of the custom methods within your database table class, such as _cm_pre_getData().

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Setting up of a subsystem to another Server
Next Topic: Custom Validation Executed - Blank Screen Displays
Goto Forum:
  


Current Time: Sat Nov 23 18:38:45 EST 2024

Total time taken to generate the page: 0.00961 seconds