Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #10961

Re: multiple visitors at the same time

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: multiple visitors at the same time
Date 2013-10-01 12:09 -0400
Organization A noiseless patient Spider
Message-ID <l2es3j$9d$2@dont-email.me> (permalink)
References <39cy6hpu04oe$.18k40zgdny9go$.dlg@40tude.net> <vilain-B44D7A.16162330092013@news.individual.net> <tabtkdru0f5g$.1x6bq88mzzryc$.dlg@40tude.net> <vilain-05AC83.20372230092013@news.individual.net> <%Ty2u.16322$Tp1.3264@en-nntp-06.dc1.easynews.com>

Show all headers | View raw


On 10/1/2013 8:05 AM, Richard Damon wrote:
> On 9/30/13 11:37 PM, Michael Vilain wrote:
>> Most session IDs without a login aren't sufficiently unique.  You'll
>> need to have additional criteria to ensure that to machines with the
>> same browser and hardware connecting to your server from the same IP
>> address are able to be differentiated between the two.  That's up to
>> you.  You sound like you need to do a lot of reading up on this before
>> you come up with a viable solution.  Publically available stuff without
>> first authenticating the user will only get you so far.
>>
>
> Session IDs with or without login MUST be unique, or your sessions are
> broken (session logic MUST give a new id number to anything starting a
> session, or you don't have real sessions). Multiple connections from the
> same IP will be given different sessions.
>
> Using a session ID without a login will mean that any work the user does
> will be forgotten when the session expires.
>
> What adding a login does is to allow you to put into the session a user
> id from the login, so that the data from the user can persist from one
> session to another.
>

Just adding an id from the login to the session won't do a thing.  When 
the session expires, the data will be lost.

If you want the data to continue across sessions, you need to store it 
yourself, i.e. in a database.


-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

multiple visitors at the same time richard <noreply@example.com> - 2013-09-30 18:12 -0400
  Re: multiple visitors at the same time Michael Vilain <vilain@NOspamcop.net> - 2013-09-30 16:16 -0700
    Re: multiple visitors at the same time richard <noreply@example.com> - 2013-09-30 19:23 -0400
      Re: multiple visitors at the same time Michael Vilain <vilain@NOspamcop.net> - 2013-09-30 20:37 -0700
        Re: multiple visitors at the same time Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-01 06:15 -0400
        Re: multiple visitors at the same time Richard Damon <Richard@Damon-Family.org> - 2013-10-01 08:05 -0400
          Re: multiple visitors at the same time Christoph Michael Becker <cmbecker69@arcor.de> - 2013-10-01 18:02 +0200
          Re: multiple visitors at the same time Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-01 12:09 -0400
            Re: multiple visitors at the same time Richard Damon <Richard@Damon-Family.org> - 2013-10-02 23:33 -0400
              Re: multiple visitors at the same time Scott Johnson <noonehome@chalupasworld.com> - 2013-10-03 05:27 -0700
                OT Re: multiple visitors at the same time Twayne <nobody@spamcop.net> - 2013-10-03 14:00 -0400
                Re: OT Re: multiple visitors at the same time Scott Johnson <noonehome@chalupasworld.com> - 2013-10-03 16:13 -0700
  Re: multiple visitors at the same time Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-09-30 20:13 -0400
  Re: multiple visitors at the same time Fiver <numeralfive@gmail.com> - 2013-10-01 05:30 +0200
  Re: multiple visitors at the same time Norman Peelman <npeelman@cfl.rr.com> - 2013-10-01 07:04 -0400
  Re: multiple visitors at the same time Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-01 20:48 +0000
  Re: multiple visitors at the same time Knocker <knock_yourself_out@example.net> - 2013-10-04 01:02 +0000
    Re: multiple visitors at the same time Twayne <nobody@spamcop.net> - 2013-10-04 19:19 -0400

csiph-web