Re: [PHP] maintaining [user] state without a session ...

2008-03-13 Thread tedd
At 12:34 PM + 3/11/08, Stut wrote: On 4 Mar 2008, at 13:57, Jochem Maas wrote: Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two that he might do that but I

Re: [PHP] maintaining [user] state without a session ...

2008-03-13 Thread Stut
tedd wrote: Nice article. Thanks. I question the reason why you would want to encrypt the cookie considering that before the user is going to be provided access to sensitive data that you require a password confirmation. The encryption seems to be an unnecessary overkill. So what if a

Re: [PHP] maintaining [user] state without a session ...

2008-03-13 Thread tedd
At 3:16 PM + 3/13/08, Stut wrote: tedd wrote: Nice article. Thanks. I question the reason why you would want to encrypt the cookie considering that before the user is going to be provided access to sensitive data that you require a password confirmation. The encryption seems to be an

Re: [PHP] maintaining [user] state without a session ...

2008-03-13 Thread tedd
At 4:01 PM + 3/13/08, Stut wrote: tedd wrote: Then, when the user returns, you simply check the cookie with what's stored in the dB and continue as before. If the check fails (no session id or it has been altered), then start again. Because that negates the whole point of doing it which

Re: [PHP] maintaining [user] state without a session ...

2008-03-13 Thread Stut
tedd wrote: At 4:01 PM + 3/13/08, Stut wrote: tedd wrote: Then, when the user returns, you simply check the cookie with what's stored in the dB and continue as before. If the check fails (no session id or it has been altered), then start again. Because that negates the whole point of

Re: [PHP] maintaining [user] state without a session ...

2008-03-13 Thread Stut
tedd wrote: At 3:16 PM + 3/13/08, Stut wrote: tedd wrote: I question the reason why you would want to encrypt the cookie considering that before the user is going to be provided access to sensitive data that you require a password confirmation. The encryption seems to be an unnecessary

Re: [PHP] maintaining [user] state without a session ...

2008-03-11 Thread Stut
On 4 Mar 2008, at 13:57, Jochem Maas wrote: Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two that he might do that but I was wondering if any one could give

Re: [PHP] maintaining [user] state without a session ...

2008-03-11 Thread Zoltán Németh
2008. 03. 11, kedd keltezéssel 12.34-kor Stut ezt írta: On 4 Mar 2008, at 13:57, Jochem Maas wrote: Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two

Re: [PHP] maintaining [user] state without a session ...

2008-03-11 Thread Stut
On 11 Mar 2008, at 14:26, Zoltán Németh wrote: 2008. 03. 11, kedd keltezéssel 12.34-kor Stut ezt írta: On 4 Mar 2008, at 13:57, Jochem Maas wrote: Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread Zoltán Németh
2008. 03. 4, kedd keltezéssel 12.15-kor Daniel Brown ezt írta: but what else would I do? Spend time with the pre-wife? sure that's what you should :) greets, Zoltán Németh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread Zoltán Németh
2008. 03. 4, kedd keltezéssel 18.05-kor Nathan Rixham ezt írta: tedd wrote: At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a minimum of 10-12 hours per day, but what else

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread Jason Pruim
On Mar 5, 2008, at 10:39 AM, Zoltán Németh wrote: 2008. 03. 4, kedd keltezéssel 18.05-kor Nathan Rixham ezt írta: tedd wrote: At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread tedd
At 10:45 AM -0500 3/5/08, Jason Pruim wrote: Me personally, I'm on Wife 1.0 (Still working out a few bugs before 1.1 is released) But I do have Son 1.20 and in a few months Son 2.0 will be released into the wild.. The only problem I have found with wife 1.0 and son 1.20 is my bank account

Re: [PHP] maintaining [user] state without a session ...

2008-03-05 Thread Daniel Brown
On Wed, Mar 5, 2008 at 11:19 AM, tedd [EMAIL PROTECTED] wrote: At 10:45 AM -0500 3/5/08, Jason Pruim wrote: Me personally, I'm on Wife 1.0 (Still working out a few bugs before 1.1 is released) But I do have Son 1.20 and in a few months Son 2.0 will be released into the wild.. The only

RE: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Jay Blanchard
[snip] Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two that he might do that but I was wondering if any one could give an idea about the write way to do it in terms

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Stut
On 4 Mar 2008, at 14:05, Jay Blanchard wrote: [snip] Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two that he might do that but I was wondering if any one could

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Bojan Tesanovic
Hi, It depends what do you need to track, if you need to track small amount of variables you can do it by cookie I often use it eg here is the state for one user $state = array{ 'logedin'=true, 'n'='Peter', 'id'='5', //anything else you need } //at end of you script before outputing any content

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the issues are but it's not ready yet. I'll let the list know when it's done. Is it done yet? -- /Dan Daniel P. Brown Senior Unix

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the issues are but it's

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Jason Pruim
On Mar 4, 2008, at 11:11 AM, Daniel Brown wrote: On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Stut
On 4 Mar 2008, at 16:11, Daniel Brown wrote: On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Jochem Maas
Daniel Brown schreef: On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 11:14 AM, Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown schreef: You're full of crap. I have a day job, too, but I still feel like I spend half of my time reading and responding to list posts. ;-P you should check the stats mail you send out ... I think

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Jochem Maas
Stut schreef: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the issues are but it's not ready yet. I'll let the list know when it's done.

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Stut
On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the issues are but it's not ready yet. I'll let the list know when it's done. Is it done yet?

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 11:22 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Mar 4, 2008, at 11:11 AM, Daniel Brown wrote: You're full of crap. I have a day job, too, but I still feel like I spend half of my time reading and responding to list posts. ;-P Ummm... Mr. Brown... I'm pretty

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread tedd
At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a minimum of 10-12 hours per day, but what else would I do? Spend time with the pre-wife? You're working on wife 1.0 beta -- wait

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Nathan Rixham
tedd wrote: At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a minimum of 10-12 hours per day, but what else would I do? Spend time with the pre-wife? You're working on wife 1.0

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread tedd
At 6:05 PM + 3/4/08, Nathan Rixham wrote: tedd wrote: At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a minimum of 10-12 hours per day, but what else would I do? Spend time

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 8:22 am, Bojan Tesanovic wrote: Hi, It depends what do you need to track, if you need to track small amount of variables you can do it by cookie I often use it eg here is the state for one user $state = array{ 'logedin'=true, 'n'='Peter', 'id'='5', //anything else

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 10:22 am, Jason Pruim wrote: On Mar 4, 2008, at 11:11 AM, Daniel Brown wrote: On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an