Welcome Guest, Not a member yet? Register   Sign In
RA_Session - Version 2.3 Updated
#11

[eluser]systemsos[/eluser]
Found my error. First I thought my if statements where all screwy (which they were, I don't like using elseif statements everywhere but it appears I did).

Secondly, is something I'm not fulling grasping (I'll grab that coffee).

In the function persistant_session - the following statement is used to determine if the user is just checking to see if it's there.

Code:
if ($time_to_stay_active == '' OR $time_to_stay_active == NULL) {
Where in actual fact - I should possibly be using === (checks that the variables are the same type, not just the equal the same). This is a first for me actually... Previously I must have constructed my functions in such a way that the '' and NULL statements were always last.

Anyway - I was going to use is_null() but according to a little script I ran from james (who posted on PHP) suggested that === is 30x faster than using is_null. And I confirm - spot on james!

I shall adjust my functions now - and give you an update very shortly.

Cheers,

[i]Ps: You don't need to unset the userdata anymore - it's not done for you. I saw that if it's not handled by the sess_Destory function - which the session itself holds the correct value (nothing) on destroying it - the array userdata still does for one more page. Again, thanks for your help Smile


Messages In This Thread
RA_Session - Version 2.3 Updated - by El Forum - 02-20-2008, 07:22 PM
RA_Session - Version 2.3 Updated - by El Forum - 02-20-2008, 09:05 PM
RA_Session - Version 2.3 Updated - by El Forum - 02-20-2008, 09:37 PM
RA_Session - Version 2.3 Updated - by El Forum - 02-20-2008, 09:46 PM
RA_Session - Version 2.3 Updated - by El Forum - 02-20-2008, 10:27 PM
RA_Session - Version 2.3 Updated - by El Forum - 02-21-2008, 05:53 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-21-2008, 08:05 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-21-2008, 08:12 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 08:11 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 08:28 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 09:07 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 09:19 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 09:51 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 09:52 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 09:54 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 09:54 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 09:57 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-25-2008, 10:01 AM
RA_Session - Version 2.3 Updated - by El Forum - 03-03-2008, 04:24 PM
RA_Session - Version 2.3 Updated - by El Forum - 04-11-2008, 03:04 AM
RA_Session - Version 2.3 Updated - by El Forum - 02-23-2010, 07:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB