Session cookie and www

前端 未结 5 1105
南方客
南方客 2021-01-25 18:04

I would like to have my session work in my website when using www. AND when not using it. I\'ve read this thread: PHP cookie problem - www or without www

And this would

5条回答
  •  长发绾君心
    2021-01-25 18:38

    PHP uses cookies for the session id, so thats really the same problem (and solution). Have a look at the session configuration.

    http://php.net/manual/en/session.configuration.php

提交回复
热议问题