Re: Re: Problem 1 of 2 - Sessions not working

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

 



that all sounds correct ... umm, what else can you try ...

well,
here's a little test peice of code
<?php
 session_start();
 $_SESSION['test'] = 'bob';
?>
and here's my sessions settings (as shown by php_info())

session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path c:\temp\php\sessions c:\temp\php\sessions
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 1 1

-- 
Louis Solomon
www.SteelBytes.com

"Lists" <lists@xxxxxxxxxxx> wrote in message 
news:200504240733.j3O7XGcw017281@xxxxxxxxxxxxxx
Yes, sir.  I even changed permissions on e:\PHP to everyone and made 
inheritable, i.e., I removed all permissions, then reinstated full control 
to everyone, inheritable by child objects.  I'm not as conversant with 
permissions and such as I perhaps should be, but as near as I can tell, 
anyone can do anything with/to e:/php and all directories & files below it.

That brings to mind a question:  should I change the session folder to a 
location within the web structure, e.g., f:\inetpub\wwwroot\sessiondata?  Or 
does that really matter?  This business has me questioning everything I 
thought I knew about permissions <sigh />.

Or is there a better configuration for save_handler than file?  I'm open to 
try just about anything but standing on my head and whistling 'Dixie' 
<chortle />.


> session.save_handler = file
> session.save_path = e:\PHP\sessiondata    ; argument passed to 
> save_handler

> is there adequate permissions on e:\PHP\sessiondata?  (simple test, set it
> to everyone full, and see if it helps)

> --
> Louis Solomon
> www.SteelBytes.com

> "Lists" <lists@xxxxxxxxxxx> wrote in message
> news:200504230750.j3N7oClv006496@xxxxxxxxxxxxxx
> Sorry, I overlooked adding that <sigh />.

> This is the last configuration that I tried.

> [Session]
> session.save_handler = file
> session.save_path = e:\PHP\sessiondata    ; argument passed to 
> save_handler
> session.use_cookies = 1
> ; session.use_only_cookies = 0
> session.name = PHPSESSID
> session.auto_start = 0
> session.cookie_lifetime = 1200
> session.cookie_path = /
> session.cookie_domain =
> session.serialize_handler = php
> session.gc_probability = 1
> session.gc_divisor     = 100
> session.gc_maxlifetime = 1440
> session.bug_compat_42 = 1
> session.bug_compat_warn = 1
> session.referer_check =
> session.entropy_length = 0
> session.entropy_file =
> ;session.entropy_length = 16
> ;session.entropy_file = /dev/urandom
> session.cache_limiter = nocache
> session.cache_expire = 180
> session.use_trans_sid = 0
> url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="


> Must admit that some of the settings here are foreign to me . . . I've 
> just
> been adjusting by rote at the suggestion(s) of folk who are better steeped
> in session parameters.  Still on a learning curve . . . which suddenly got
> very steep <sigh />.

> > > My PHP.INI file appears to be properly configured for session usage - 
> > > at
> > > least, it is set according to what document specs I've been able to
> > > find.

> > so what are your ini session settings?

> > --
> > Louis Solomon
> > www.SteelBytes.com

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

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

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux