Re: session domain

From: Date: Thu, 23 Jan 2003 12:54:59 +0000
Subject: Re: session domain
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-132812@lists.php.net to get a copy of this message
i thought this about cookies... but i would cookies to be sent by clients only on some hosts of the same domain, just this. bye, stain. Il 13:40, giovedì 23 gennaio 2003, Marek Kilimajer ha scritto: > It is cookie restriction, you can > - set several cookies, but it won't work if user has third party cookies > disabled (many have) > - pass session id in url if the url is cross domain > > Stain wrote: > >i would use sessions in multiple hosts of my domain. say my domain is > >example.com, i'd use sessions in several hosts such as: > >www1.example.com > >www2.example.com > >www3.example.com > > > >this could be easily configured in php.ini by putting: > >session.cookie_domain = example.com > > > >but how can i do if i would EXCLUDE some hosts of my domain? someting like > >giving the exact list of hosts the cookie should be sent by user clients > > to the server: > >session.cookie_domain = www1.exclude.com,www2.example.com,www3.example.com > >(i tried, but it doesn't works!) > > > >such thing is useful when you have some hosts in which you're sure you > > manage them, while some others you're not so sure. for istance, someone > > on an hosted site of the same domain could catch all sessions clients > > sent to his site and re-use those sessions faking someone other > > authentication... > > > >some hints? > > > >tell me if it's not clear... > > > >bye, stain. -- "If there is any, error is human"

« previous php.general (#132812) next »