Re: [PHP-DB] Major Cookie Problem

2010-05-13 Thread Richard Quadling
On 13 May 2010 12:32, Barry Zimmerman  wrote:
> setcookie('peg', 'YES', 'time()+190', '', 0);

Can you try removing the quotes from around the expire parameter.

setcookie('peg', 'YES', time()+190, '', 0);

Richard
-- 
-
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Major Cookie Problem

2010-05-13 Thread Chaitanya Yanamadala
On 5/13/10, Barry Zimmerman  wrote:
> Its only happening in safari with the cookie not being set. It must be my
> cookie string that is the problem. I just cannot find anything on the issue.
>
> My other major issue is the fact that the session is being set when the post
> has not even been declared, its just setting the session?
>

Hai
I think it is a problem with the safari
And also check whether u r sending any html tags before ur sending the
cookies. The other case could be with ur browser
Goto preferences ->security->accept cookies in d browser and check the
button always and then exit browser
Now check that
 Regarding ur second problem session starting before posting the vales
it is might be coz of the old session that is existing whenu ran last
time so do some thing like delete all cookies and sessions from the
browser and try also make sure that u dont have a session start in the
database connection php file
-- 
Chaitanya

"A man can get discouraged many times but he is not a failure until he
stops trying..."

"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Major Cookie Problem

2010-05-13 Thread Barry Zimmerman
Its only happening in safari with the cookie not being set. It must be my
cookie string that is the problem. I just cannot find anything on the issue.

My other major issue is the fact that the session is being set when the post
has not even been declared, its just setting the session?