Cookies are lost with strange behavior

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
JAF
Forum Newbie
Posts: 2
Joined: Mon Sep 22, 2008 11:01 am

Cookies are lost with strange behavior

Post by JAF »

My problem is simple but complex at the same time.

I'm developing a website with backoffice for content maintenance. I have a login form that works fine but when call for the first time a script to update a record in the database through a form, the cookie with PHPSESSID is lost and all login information is lost too. after this error, I login again (without closing the browser) on the website and the cookie don't get lost anymore. This error only append again when I close the browser and reopen it.

I'm busting my brain for almost 2 months. Please help me with this issue.

Thanks in advance.
Best Regards.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Cookies are lost with strange behavior

Post by califdon »

That would lead me to suspect that your code contains an error.
JAF
Forum Newbie
Posts: 2
Joined: Mon Sep 22, 2008 11:01 am

Re: Cookies are lost with strange behavior

Post by JAF »

then, tell me why it only append the first time I login. Almost every script works fine, even one that contains a form. Only two scripts in the entire website have this problem, and only have it on the first time I login on the website. After de error occurs, doesn't append anymore, even when I call those two scripts.

I can put the scripts and my php.ini file if you want.
Post Reply