Reload a PHP session?
Moderator: General Moderators
Reload a PHP session?
is possible reload a php session?
i want to refresh all session data every page load
this is for use with all logged persons
is possible?
i want to refresh all session data every page load
this is for use with all logged persons
is possible?
for me noaaronhall wrote:Anything stored in $_SESSION from previous pageloads is reinitialized when you call session_start()
exemple:
i log into a account
i have a Stat block eg. 20 menbers stat
i go manualy to mysql and change to 21
when i make a reload in my page this not update stay showing 20
after when i logout and login again will be correct
any about this?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
im using Dreamweaver Developer Tool extension to make the login and all, before this work at page refresh but now dont workEverah wrote:Time to look closer at the code then.
Code: Select all
<?php require_once('Connections/CFmysql.php'); ?>
<?php
// Load the tNG classes
require_once('includes/tng/tNG.inc.php');
// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("");
?>- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
i search in includes and i found a good toolEverah wrote:Unfortunately that little snippet will tell nobody anything. What is in the code that is included (that will have something to do with your problem)?
Code: Select all
/**
* Update in session the values related to user login;
* @param object tNG transaction object
* @return nothing
* @access public
*/
function Trigger_Update_RefreshSession(&$tNG) {