Session and cookie in same PHP file?

Posted by ajsie on Stack Overflow See other posts from Stack Overflow or by ajsie
Published on 2009-12-10T02:29:18Z Indexed on 2010/04/07 8:23 UTC
Read the original article Hit count: 154

Filed under:
|
|

Can't I set session and cookie in same PHP file?

I get an error message if I set the cookie after I've set session telling me that the header is already sent.

If I set session after cookie I get nothing but it seems not to work well.

© Stack Overflow or respective owner

Related posts about session

Related posts about cookies