Raised This Month: $ Target: $400
 0% 

Cookie lost !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-26-2013 , 07:39   Cookie lost !
Reply With Quote #1

Ha crap!
My cookie are lost each time I reload the plugin (and I'm connected to server.) !
How can I fix this ?

OnPluginStart
Spoiler
OnClientPutInServer
Spoiler
OnClientDisconnect
Spoiler
__________________
Want to check my plugins ?
Arkarr is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 11-26-2013 , 07:41   Re: Cookie lost !
Reply With Quote #2

search before posting.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-26-2013 , 07:48   Re: Cookie lost !
Reply With Quote #3

D; sorry and thanks.
__________________
Want to check my plugins ?
Arkarr is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 11-26-2013 , 08:24   Re: Cookie lost !
Reply With Quote #4

Our torments also may in length of time
Become our elements.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-26-2013 , 09:33   Re: Cookie lost !
Reply With Quote #5

OnClientPutInServer is potentially too early to check for cookies. Use OnClientCookiesCached
psychonic is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 11-26-2013 , 09:44   Re: Cookie lost !
Reply With Quote #6

Do you have something that fetches client cookies when the plugin is loaded?
If not you will probably overwrite cookies on a lateload.
__________________

Last edited by Impact123; 11-26-2013 at 09:44.
Impact123 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-26-2013 , 12:35   Re: Cookie lost !
Reply With Quote #7

I have put my code here. What's wrong ? I think nothing is late loaded.
__________________
Want to check my plugins ?

Last edited by Arkarr; 11-26-2013 at 15:00.
Arkarr is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-26-2013 , 12:53   Re: Cookie lost !
Reply With Quote #8

"Late load" likely refers to the plugin starting AFTER players have joined the server. This is usually what happens during the initial installation ("sm plugins load levelHUD") but can potentially occur during other times, especially if a server dev likes to manually load/unload plugins for whatever reason.
__________________

Last edited by ddhoward; 11-26-2013 at 12:54.
ddhoward is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode