[PHP] Maintaining State Remotely
I'm writing some code to login into my favorite sport site to get stats. I get logged in ok with the post request showing my username and password, the response screens welcomes me by name. However when I send a second request immediately after the successful login, I'm being told I need to login. I thought perhaps it might be cookies, so I tried setting the cookies to the values previously set on the first attempt, but no luck. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Maintaining State Remotely
* Thus wrote php chucker ([EMAIL PROTECTED]): I'm writing some code to login into my favorite sport site to get stats. I get logged in ok with the post request showing my username and password, the response screens welcomes me by name. However when I send a second request immediately after the successful login, I'm being told I need to login. I thought perhaps it might be cookies, so I tried setting the cookies to the values previously set on the first attempt, but no luck. It could be that your missing a cookie. The website might be sending a cookie when you request the login page. Or you might not be sending the value back to them properly. It's really hard to say without observing the whole login process and observing how they handle your session accross they website visit. Liveheaders and firebird could help out in finding out what they're sending and when. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Maintaining state
Why don't you use session variables? ""David Hynes"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What is the best method for tracking a user through a website ? I want to assign a username to a user which I can call up at anytime. Should I use htaccess files and the systems environment variables, or cookies ? Cheers, David. --- Fed202 Solutions www.fed202solutions.com Mobile : 07779 293368 --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Maintaining state
What is the best method for tracking a user through a website ? I want to assign a username to a user which I can call up at anytime. Should I use htaccess files and the systems environment variables, or cookies ? Cheers, David. --- Fed202 Solutions www.fed202solutions.com Mobile : 07779 293368 --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Maintaining state
Try this: http://hotwired.lycos.com/webmonkey/00/05/index2a.html Jeff Oien PHP start here http://www.webdesigns1.com/php/ What is the best method for tracking a user through a website ? I want to assign a username to a user which I can call up at anytime. Should I use htaccess files and the systems environment variables, or cookies ? Cheers, David. --- Fed202 Solutions www.fed202solutions.com Mobile : 07779 293368 --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]