session_regenerate_id() and page refresh

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dandri
Forum Newbie
Posts: 7
Joined: Mon Oct 17, 2005 9:20 am

session_regenerate_id() and page refresh

Post by dandri »

I use a database-driven session system and the function "session_regenerate_id()" to generate a new session ID at every hit on session pages. When using cookies to propagate SID, there's no problem. But when using URL, I have the following problem:
All links in the next page contain the new SID in their URLs, but if I try to refresh this page using the refresh button, the old SID is used, which is, of course, invalid.
Post Reply