You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where current session is a string that can be decoded into an array to determine what classes of access someone has.
This sometimes works perfectly, and sometimes is very unreliable and breaks quickly and easily resulting in a generic session.
I've managed to track down that the global variable for $sessions seems to hold the key value pair temporarily, and then loses it seemingly at random, resulting in a session not found and a return to a generic session.
I've tried being very specific about writing to the session file, and it only reads when the core FCGI script is first loaded, before running FCGI.each_cgi {|cgi| make_page(cgi)}
The rest of registration and login seems to more or less work, but even before tying account name and passwords to session tokens, I was getting the same problems.
Are global variables not supported/functional with fcgi-ng? they seem to work fine as long as nothing writes to them, but as soon as it's written, everything breaks.
I'm not really sure if this is a bug here or if I'm supposed to use a function to synchronize the state of a global variable, but since the session key is uniquely generated on login, and nothing else is going to write to that key at any point in the script, it seems very strange that the global variable loses the key, sometimes right away, and sometimes after a while, with no consistency to when or why.
None of my search queries seem to produce any results either.
The text was updated successfully, but these errors were encountered:
I've been trying to write up a simple ruby page/resource return with basic sessions management.
The methodology is
where current session is a string that can be decoded into an array to determine what classes of access someone has.
This sometimes works perfectly, and sometimes is very unreliable and breaks quickly and easily resulting in a generic session.
I've managed to track down that the global variable for $sessions seems to hold the key value pair temporarily, and then loses it seemingly at random, resulting in a session not found and a return to a generic session.
I've tried being very specific about writing to the session file, and it only reads when the core FCGI script is first loaded, before running FCGI.each_cgi {|cgi| make_page(cgi)}
The rest of registration and login seems to more or less work, but even before tying account name and passwords to session tokens, I was getting the same problems.
Are global variables not supported/functional with fcgi-ng? they seem to work fine as long as nothing writes to them, but as soon as it's written, everything breaks.
I'm not really sure if this is a bug here or if I'm supposed to use a function to synchronize the state of a global variable, but since the session key is uniquely generated on login, and nothing else is going to write to that key at any point in the script, it seems very strange that the global variable loses the key, sometimes right away, and sometimes after a while, with no consistency to when or why.
None of my search queries seem to produce any results either.
The text was updated successfully, but these errors were encountered: