Re: Re: multiple sessions for the same user
| From: | Tony Marston | Date: | Fri, 04 Apr 2014 16:02:08 +0000 |
| Subject: | Re: Re: multiple sessions for the same user | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323159@lists.php.net to get a copy of this message | ||
"Larry Martell" wrote in message news:CACwCsY4RA6hEp4+-FgZ4L3MV2QrVo6z-JDnOPB2sdbANytRR=Q@mail.gmail.com...
On Fri, Apr 4, 2014 at 10:54 AM, Tony Marston <TonyMarston@hotmail.com> wrote:I use following settings in my htaccess file: "Larry Martell" wrote in message news:CACwCsY4RA6hEp4+-FgZ4L3MV2QrVo6z-JDnOPB2sdbANytRR=Q@mail.gmail.com..."Larry Martell" wrote in message news:CACwCsY4xBbdzKE0imoqSTPMpOR-LuELmO1LkZgv4yZ31RqnpOg@mail.gmail.com...Thank you very much Tony. I am going to look into implementing this now. One question - does use_trans_sid have to be set for this to work? I asked because I am getting some push back from my admins about setting that.I have a php app that uses a session to share data across requests (using session_start()) I have a situation where a user wants to open 2 invocations of the app in 2 browser tabs and look at different things, but because of the session, both tabs have the same data. Is there a way to have a separate session for each tab they open?Yes, this is possible because I have implemented this feature in my framework. It allows any user to have any number of independent sessions in any browser. My solution is documented in www dot tonymarston.net/php-mysql/client-clones.html
On Fri, Apr 4, 2014 at 10:54 AM, Tony Marston <TonyMarston@hotmail.com> wrote:This procedure uses session cookies only, so I use the following settings in my htaccess file: php_value session.use_cookies 1 php_value session.use_only_cookies 1 php_value session.use_trans_sid 0 -- Tony Marston"Larry Martell" wrote in message news:CACwCsY4xBbdzKE0imoqSTPMpOR-LuELmO1LkZgv4yZ31RqnpOg@mail.gmail.com...Thank you very much Tony. I am going to look into implementing this now. One question - does use_trans_sid have to be set for this to work? I asked because I am getting some push back from my admins about setting that.I have a php app that uses a session to share data across requests (using session_start()) I have a situation where a user wants to open 2 invocations of the app in 2 browser tabs and look at different things, but because of the session, both tabs have the same data. Is there a way to have a separate session for each tab they open?Yes, this is possible because I have implemented this feature in my framework. It allows any user to have any number of independent sessions in any browser. My solution is documented in www dot tonymarston.net/php-mysql/client-clones.html