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 ma

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.

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 c

[PHP] sessions/cookies

2008-01-22 Thread nihilism machine
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: mysql_connect('','','') or die('ERROR: Could not connect to database'); mysql_selec

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 navigate

[PHP] Sessions /cookies issue

2006-10-18 Thread Dave Goodchild
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 navigated to the form pages, te

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 varia

[PHP] sessions & cookies

2004-06-19 Thread Scott Taylor
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). Any ideas? Best Regards, Scott T

RE: [PHP] PHP Sessions - Cookies Not Saving

2004-03-05 Thread electroteque
but it will > save on my Linux box. As sending cookies is pretty much a generic procedure which is not platform dependent it would suggest that your WinXP box is broken (needless to say I'm assuming that you have already ensured that your browser is configured to accept cookies). Have you trie

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-05 Thread Jason Wong
On Friday 05 March 2004 13:05, Paul Higgins wrote: > When I thought about what the compay really told me...it didn't make sense. > All I know is that that cookie will not save on my WinXP box, but it will > save on my Linux box. As sending cookies is pretty much a generic procedure which is not pl

RE: [PHP] PHP Sessions - Cookies Not Saving

2004-03-05 Thread Ford, Mike [LSS]
On 05 March 2004 03:33, Paul Higgins wrote: > When I do: print_r($_COOKIE); I get the following: > Array ( [PHPSESSID] => 11781ce29c68ca7ef563110f37e43f38 ) > > Does that mean its setting the Cookie? Yes. Cheers! Mike - Mike

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
]> Subject: Re: [PHP] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST) Is it a non default /tmp ? If so it should be in php.ini or u have to set where it is with an ini_set , hope that helps. > AAAGGGH!! > >

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
t; > Paul > > >>From: <[EMAIL PROTECTED]> >>To: <[EMAIL PROTECTED]> >>Subject: Re: [PHP] PHP Sessions - Cookies Not Saving >>Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST) >> >>Is it a non default /tmp ? If so it should be in php.in

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
If there is something in $_COOKIE, what does that mean? That there is a cookie somewhere? Or is it appending the Session ID to the URL? Paul From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [PHP] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 15:24:32 +1100

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
f...all that time wasted. Thanks for the help > though...it was much appreciated! > > Paul > > >>From: <[EMAIL PROTECTED]> >>To: <[EMAIL PROTECTED]> >>Subject: Re: [PHP] PHP Sessions - Cookies Not Saving >>Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
PROTECTED]> Subject: Re: [PHP] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST) Are the hosts u looking at the same ? Like is it the very same link ? Check on the XP box if you have cookies disabled, u can always check if the session is being stored on the server too,

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
setting is set to Medium. Thanks, Paul From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [PHP] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST) Are the hosts u looking at the same ? Like is it the very same link ? Check on the XP box if yo

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
Are the hosts u looking at the same ? Like is it the very same link ? Check on the XP box if you have cookies disabled, u can always check if the session is being stored on the server too, look in /tmp first. Try a print_r ($_COOKIE); aswell. > Hi everyone, > > I'm trying to create a session with

[PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
Hi everyone, I'm trying to create a session with PHP. I'm using the following code: print( session_id( ) ); print( ''); print( '' ); print( ' http://www.mysite.com/shopping_cart/Test2.php";>Here' ); print( '' ); print( '' ); ?> Now, I'm trying to view this site on a WinXP bo

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 th

[PHP] Sessions, Cookies, and Subdomains

2002-12-02 Thread Rob Paxon
Hello, I've a bit of a problem and was wondering if anyone out there can help straighten it out. I have never worked with cookies or php sessions before as the need for such has never presented itself before. Up until this point I have been using a very customized version of PostNuke but thing

Re: [PHP] Sessions/Cookies and HTTP Auth

2002-03-27 Thread maxwello
OTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 27, 2002 7:10 PM Subject: [PHP] Sessions/Cookies and HTTP Auth > > Here is the scenario. > > 1. I set my browser to block all cookies. > 2. I access this script. > 3. I am thinking that I should get an error beca

[PHP] Sessions/Cookies and HTTP Auth

2002-03-27 Thread David McInnis
Here is the scenario. 1. I set my browser to block all cookies. 2. I access this script. 3. I am thinking that I should get an error because I presume that session_start() will attempt to set a cookie (which it appears to do). (I tried setcookie() too and the cookie was accepted.) My quest

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, that

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 (supp

[PHP] sessions / cookies / header("Location...

2001-05-17 Thread Christian Dechery
I have a page that does a login... right after the login is successfull it registers a session var called 'userid'... and does a header("Location: newpage.php") which checks for the existance of this var... if it exists it will show, otherwise it goes back to the login page... the weird thing