Method RemovePersistentVar doesn't work for Guests

0 views
Skip to first unread message

Alexander Obuhovich

unread,
Aug 20, 2010, 5:40:09 PM8/20/10
to In-Portal Bugs
In-Portal has 2 session types:
  • one that stored user-related data until he perform logout or closes browser window
  • other (persistent) that holds data between user login/logout times
We use current user ID to store data in persistent session. All non logged in users share same ID - "-2". To prevent persistent session data to be mixed we store persistent session variables into regular session table and they will be deleted once user closes browser window.

All seems ok, but there is a problem with data deletion from persistent session for non logged in users (guests) - it doesn't work.

I've attached fix for that.

Task: http://tracker.in-portal.org/view.php?id=829

Ready for testing.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
method_removepersistentvar_doesnt_work_for_guest.patch
Reply all
Reply to author
Forward
0 new messages