Ask a Question related to Dreamweaver AppDev, Design and Development.
-
jip #1
Maintaining state in php w/ session variables
I am working in php and I am using the DW04 server behaviors for login, logout,
and restrict page access. I noticed that each of these behaviors uses a
session_start(). The login server behavior generates: //declare two session
variables and assign them $GLOBALS['MM_Username'] = $loginUsername;
$GLOBALS['MM_UserGroup'] = $loginStrGroup; //register the session
variables session_register('MM_Username');
session_register('MM_UserGroup'); How do I access these session variables on
subsequent pages? Does the presence of session_start() clear the current
session?
jip Guest
-
Maintaining view state in datagrid
hi all, I have a datagrid in my asp.net page. In that datagrid, i have paging enabled. And one template column having checkbox control in... -
Maintaining Session Variables
I am working on building a site the sells Auto Parts. We have several dealers signed up and instead of using WWW as the host we set it up so each... -
Maintaining View State For Dynamically Created Controls
I am building a custom control that I want to server as a container for child controls that can be dynamically added to this control. I can persist... -
Session State error -- trying to load public variables
Never mind, I think I've realized that some of the Session vars wouldn't not be set at this page's load time. So I just declared them as name/type... -
Pop-up menus: Maintaining trigger button over state
Hi folks, I want to maintain the over state of the trigger buttons/slices whilst I mouse over the triggered pop-up menus. I have tried numerous... -
Ross Riley #2
Re: Maintaining state in php w/ session variables
session_start() will either start a new session, or if one already exists,
resume it. So it doesn't clear a current session. Macromedia is a little
outdated now. The correct way to assign these variables to the session would
be.... $SESSION['MM_Username'] = $loginUsername; $SESSION['MM_UserGroup'] =
$loginStrGroup; then you can access the variables by....
$SESSION['MM_Username'] and $SESSION['MM_UserGroup'] hope this helps
Ross Riley Guest
-
jip #3
Re: Maintaining state in php w/ session variables
Thanks for the feedback. It is much appreciated!
jip Guest



Reply With Quote

