Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[Done] Store username in vanilla's cookie?
Hi there,
I'm using http://www.haveamint.com/forum/viewtopic.php?id=1688 and therefore I need the username to be stored with the vanilla-cookie - is there an easy way to do this?
Tanks!
I'm using http://www.haveamint.com/forum/viewtopic.php?id=1688 and therefore I need the username to be stored with the vanilla-cookie - is there an easy way to do this?
Tanks!
0
This discussion has been closed.
Comments
I made a small "extension" out of a_j's bigger one :-)
Get it here if you want (updated)
if ($Context->Session->UserID > 0 && ForceIncomingCookieString('your_cookie_name', '') != $Context->Session->User->Name) { setcookie ("your_cookie_name", $Context->Session->User->Name, time()+604800); }
Changed the code to what you've written - the first thing worked for me, but not very effective I think...