Re: [PHP] storing passwords in $_SESSION

2005-10-12 Thread Dan Brow
On Tue, 2005-10-11 at 00:25 +0200, Oliver Grätz wrote: > Dan Brow schrieb: > > Thanks, figured that would be the case. Can't for life of me think why I > > wanted to do that, must have had a brain infarction. I want to have an > > expired session prompt so people can log

Re: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
Sorry for the confusion, I should have changed the subject line to reflect my new idea. Thanks. On Mon, 2005-10-10 at 22:03 +0200, Emil Novak wrote: > Oh, just username... That's good idea. > > Emil NOVAK > LAMP Developer > > On 10/10/05, Dan Brow <[EMAIL PROTECTED]

Re: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
at is advanced programmer. The best way is to "eliminate" > lazy users - you simply do not implement "auto login". It's the > fastest, safest and the easiest way to solve the problem. > > Emil NOVAK > LAMP Developer > > On 10/10/05, Dan Brow <[EMAIL

RE: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
Well, um. ya. Back to the drawing board. Save it in a cookie? On Mon, 2005-10-10 at 14:59 -0400, Kilbride, James wrote: > If the session expired.. how will session hold their user id?? > > > -Original Message- > > From: Dan Brow [mailto:[EMAIL PROTECTED] > >

Re: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
Thanks, figured that would be the case. Can't for life of me think why I wanted to do that, must have had a brain infarction. I want to have an expired session prompt so people can log back in with out having to start at the login page. Would having the users login saved in $_SESSION be alright? pr

[PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
How secure is it to save a password in $_SESSION. i.e. $_SESSION['password'] is it safe and is it practical? Thanks, Dan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mktime

2005-09-12 Thread Dan Brow
snip > > I'd shorten it up even more: > > $daysinyear = 365 + date("L", strtotime("jan 1 " . $year)); > ?> Thanks works perfect. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mktime

2005-09-12 Thread Dan Brow
On Tue, 2005-09-13 at 11:13 +1200, Jasper Bryant-Greene wrote: > Dan Brow wrote: > > A little confused with mktime, I'm trying to get how many days are in a > > year. > > How about doing it differently. I'd tackle this problem like this: > > $year = '2

[PHP] mktime

2005-09-12 Thread Dan Brow
A little confused with mktime, I'm trying to get how many days are in a year. $year = "2006"; $epoch = mktime(0, 0, 0, 1, 0, $year); // I have to have 1 for month or I get which day it is now. Which sucks. $date = date("z Y", $epoch); print($date); // here is the problem, I get 365 days, but the

Re: [PHP] Delivery reports about your e-mail

2005-06-10 Thread Dan Brow
On Fri, 2005-06-10 at 12:11 -0400, Returned mail wrote: > ALERT! > > This e-mail, in its original form, contained one or more attached files that > were infected with a virus, worm, or other type of security threat. This > e-mail was sent from a Road Runner IP address. As part of our continuing