liamloveslearning Posted June 9, 2010 Share Posted June 9, 2010 Hi all, This may be a stupid question so please excuse my naivity, but is it possible to regenerate a session id on a button click? Link to comment https://forums.phpfreaks.com/topic/204295-regenerate-session-id/ Share on other sites More sharing options...
syed Posted June 9, 2010 Share Posted June 9, 2010 Yes it is, you can use the session_regenerate_id() function to change the current session id. Link to comment https://forums.phpfreaks.com/topic/204295-regenerate-session-id/#findComment-1069974 Share on other sites More sharing options...
liamloveslearning Posted June 9, 2010 Author Share Posted June 9, 2010 Thanks Syed, I thought that, would it have to be a javascript button? Link to comment https://forums.phpfreaks.com/topic/204295-regenerate-session-id/#findComment-1069975 Share on other sites More sharing options...
syed Posted June 9, 2010 Share Posted June 9, 2010 It can be a link or a button <a href="regen.php">regen</a> regen.php <?php // ur code here. ?> Link to comment https://forums.phpfreaks.com/topic/204295-regenerate-session-id/#findComment-1069977 Share on other sites More sharing options...
liamloveslearning Posted June 9, 2010 Author Share Posted June 9, 2010 Thanks Syed! Link to comment https://forums.phpfreaks.com/topic/204295-regenerate-session-id/#findComment-1069983 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.