Page 1 of 1
Reload a PHP session?
Posted: Tue Oct 16, 2007 3:56 pm
by sn4k3
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?
Posted: Tue Oct 16, 2007 4:22 pm
by aaronhall
Anything stored in $_SESSION from previous pageloads is reinitialized when you call session_start()
Posted: Tue Oct 16, 2007 4:41 pm
by sn4k3
aaronhall wrote:Anything stored in $_SESSION from previous pageloads is reinitialized when you call session_start()
for me no
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?
Posted: Tue Oct 16, 2007 5:15 pm
by superdezign
Likely a cache problem.
Posted: Tue Oct 16, 2007 5:32 pm
by sn4k3
superdezign wrote:Likely a cache problem.
how can i solve this?
Posted: Tue Oct 16, 2007 5:35 pm
by RobertGonzalez
Clear your cache.
Posted: Tue Oct 16, 2007 6:17 pm
by sn4k3
Everah wrote:Clear your cache.
how?
sorry about this, this never happen before

Posted: Tue Oct 16, 2007 6:38 pm
by RobertGonzalez
Depending on the browser, usually Ctrl+F5 clears it.
Posted: Wed Oct 17, 2007 3:01 am
by sn4k3
Everah wrote:Depending on the browser, usually Ctrl+F5 clears it.
no work
page reload but dont refresh the stats still with olds
i need force all guys to do that at page load
Posted: Wed Oct 17, 2007 10:34 am
by RobertGonzalez
Time to look closer at the code then.
Posted: Wed Oct 17, 2007 10:58 am
by sn4k3
Everah wrote:Time to look closer at the code then.
im using Dreamweaver Developer Tool extension to make the login and all, before this work at page refresh but now dont work
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("");
?>
this is what i use to in each page to load sessions and check logins
Posted: Wed Oct 17, 2007 11:01 am
by RobertGonzalez
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)?
Posted: Wed Oct 17, 2007 11:04 am
by sn4k3
Everah 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)?
i search in includes and i found a good tool
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) {
i go try that