RE: Session question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can have a session start in an htaccess file.


.htaccess

php_value session.auto_start 1



Do not scream at me if you do not like this approach or it does not work for
you.
I use it and it works well for me.

Simply a suggestion.


Richard L. Buskirk


-----Original Message-----
From: Ross Hansen [mailto:hansen.ross@xxxxxxxxxxx] 
Sent: Tuesday, May 17, 2011 11:16 PM
To: php-general@xxxxxxxxxxxxx
Subject: RE:  Session question


Unless your adding more code to your included file it isn't worth having it
as an include as there is more typing/text involved. For management purposes
also it would also look ugly if you were just having one file purely  for
session_start();

> From: per@xxxxxxxxxxxx
> Date: Tue, 17 May 2011 13:01:19 +0200
> To: php-general@xxxxxxxxxxxxx
> Subject: Re:  Session question
> 
> Paul Halliday wrote:
> 
> > Is it OK to have session_start as an include?
> > 
> 
> Yes.
> 
> 
> 
> -- 
> Per Jessen, Zürich (18.1°C)
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
 		 	   		  


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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux