Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
rafal is on a distinguished road
 
Posts: 3
Join Date: Nov 2008
Default $_COOKIE trouble... - 11-10-2008, 08:23 AM

hello, im new on this forum so i feel like i should to say - hi everyone!

Im building community portal engine in php. The sourcecode if OOP. It uses two classes, which objects are put in other's class object and set into cookie. And here comes the problem - on my local apache, with the same version & basic configuration of php (5.2.6) it works ok, but on this server -NOT. The right object is created, but when setting the cookie - it losts part of given data...

Does anyone know the solution? Or maybe knows why it happens? Maybe it's becouse of installed on this server suhoxin (or however it's named)?

I wouldn't like to rebuild whole code...

Thanks a lot
Reply With Quote
(#2 (permalink))
Old
dell's Avatar
Senior Member
dell is on a distinguished road
 
Posts: 272
Join Date: Apr 2008
Location: ohio
Default 11-10-2008, 05:41 PM

ok, so the problem is that your cookie dont set right when its hosted on the server? right? it might be your computer, becuase if the host and your local apache sets the same cookie, it might become a problem. im not relly good with cookies/php but.

you would need to talk to a pro, try sending Red-X a message, he is good with php,

(yes in the forums) or stop by the 000webchat that sizzlefire and myself set up, and he might be on later today.
Reply With Quote
(#3 (permalink))
Old
Junior Member
rafal is on a distinguished road
 
Posts: 3
Join Date: Nov 2008
Default 11-10-2008, 10:10 PM

Thx for your reply, but i don't think that it causes problem. Cookie, as i know, is set by domain, so even if second cookie is trying to be created - it shouldn't work that way.

And ofcourse - i tried to use it without runnin on localhost.

Anyway - big thanks
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com