Re: [PHP] sessions/cookies

2008-01-23 Thread Jochem Maas
others have given good advice, but let's learn to walk before we run shall we. 1. session_start() should be called once per request. 2. checkValidUser() does a select on all the users in the database, this is *wrong* - do a select with a suitable WHERE clause the retrieves the one user that

Re: [PHP] sessions/cookies

2008-01-22 Thread Eric Butera
On Jan 22, 2008 9:15 PM, nihilism machine [EMAIL PROTECTED] wrote: I wrote an authentication class in php4. The sessions dont seem to be working with internet explorer, just with FF. here is the code below, a cookies notice pops up when you try and login: Hi, I took a quick look at your code.

Re: [PHP] sessions/cookies

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 9:54 PM, Eric Butera [EMAIL PROTECTED] wrote: I realize this link I'm posting is called auth too, but that wasn't my choice. that was kind of funny after your initial criticizm above, but to solars credit, its the auth 'package' so really the name isnt too bad, id say. You

Re: [PHP] Sessions /cookies issue

2006-10-18 Thread Chris
Dave Goodchild wrote: Hi all. I am building a web app which uses sessions to retain user data between pages and finally enter that data into mysql - I have noticed that out of 100 entries in the database, 10% are blank. I tested this by setting a cookie on the home page and when the user

RE: [PHP] sessions cookies

2004-06-19 Thread Michael Sims
Scott Taylor wrote: How exactly do sessions work? I've heard that if cookies are disabled that a session will then pass it's variables in the url (through GET). Yet when I manually disable cookies none of my pages work (because the $_SESSION variables do not seem to be working). The

RE: [PHP] Sessions, Cookies, and Subdomains

2002-12-02 Thread John W. Holmes
[snip] I want to have my website split into several subdomains with a shared user system. That is to say that when someone logs into foo.mysite.com they'd also be logged into bar.mysite.com when they go to it. It is my understanding that php sessions will not work in this way, being that

Re: [PHP] Sessions/Cookies and HTTP Auth

2002-03-27 Thread maxwello
When using cookies, if you don't set an expiration time, the cookie is only good until the session expires. It doesn't get saved, and it disappears when the user closes their browser. Many browsers have different settings/preferences for session cookies, and because they don't get saved to

Re: [PHP] sessions / cookies / header(Location...

2001-05-17 Thread Chris Lee
yup, your browser is not accepting cookies. thats a good guess. when a browser does not accept cookies, trans-sid will kick in, trans-sid will not work on full urls, just reletive urls. no trans-sid http://www.mediawaveonline.com/index.php trans-sid /index.php header redirectect require

Re: [PHP] sessions / cookies / header(Location...

2001-05-17 Thread Christian Dechery
it does not have anything to do with my browser... that's for sure... I'm using MSIE 5.5, and never had any trouble... and as I said on the email... it used to work fine... it just stopped working... and now yet some fresh info... it's working again now... I've tried... one thing I noticed,