Forum Moderators: coopster

Message Too Old, No Replies

Why session name() and session set cookie params()?

Wouldn't session_start() be enough?

         

MatthewHSE

5:53 am on Mar 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just a minor peeve, but I find it a little aggravating to have to call three separate session functions when it seems to me that a single one could work just as well:

session_start('name', 'lifetime', 'path', 'domain', 'secure', 'httponly');

Is there any good reason it couldn't work this way?

coopster

12:57 pm on Mar 20, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You can set the other parameters in your configuration, no need to set them every time.