FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP: Sessions and Cookies





DSalisbury
Hi,

Someone using your hosting posted on our support forums the other day requesting help as to why he couldn't log into the admin panel of his installation of one of our scripts, Olate Download. So far, we haven't been able to reproduce it on any of the servers we have access to.

The problem is that he enters the username and password, clicks the submit button and then gets redirected back to the login page again with no errors or anything. Looking into it in more detail using the LiveHTTPHeaders Firefox extension, the cookie isn't actually being sent back by the script.

I have provided him/her with a script to run to test whether the issue was actually with setting cookies, or something else. It seems from the results of the script that the cookies were setting as they should be. This now seems to suggest that it's either a problem with our script or something to do with sessions in PHP, as they send a cookie back to the web browser containing the session id. I'm going to make another test script shortly to test sessions and see if the problem lies there.

I was wondering if there were any known issues with this sort of functionality on your hosting platform. I intend to request an account as well (once I've got the five posts) to try things for myself.

Regards
David Salisbury
Bondings
DSalisbury wrote:
I was wondering if there were any known issues with this sort of functionality on your hosting platform. I intend to request an account as well (once I've got the five posts) to try things for myself.

I have never heared of a problem with cookies before. Most forums, cms's use them (like this forum) like Phpbb, phpnuke, mambo, xoops and a lot of blogs. So I don't think that this is a server problem. It maybe has something to do with different settings.

I don't have much knowledge about cookies and http-headers. I hope your testing will solve the issue.
DSalisbury
Thanks for the response. I will investigate once the account is live.
Related topics
php sessions
How To : Secure Your PHP Website
HOWTO?$lang files!
PHP Sessions
php sessions
PHP sessions and security
How to make a log in log out system for a website??
php sessions for different accounts
php SESSIONS question
Need help with Members area/link adder
$_COOKIE and $_SESSION help needed!
How tough is PHP?
PHP and cookies. Simple problem.
PHP Sessions Issue
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.