HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


3 Sessions per one page view?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#76074 (In Topic #15706)
Avatar

Community saint

I just noticed that when I visited the start page of a local installed site I instantly got 3 sessions created in the sessions table 1 as guest 2 as admin.  I was curious why there would be 3 sessions?
Back to the top
 
Posted
Rating:
#76075
Avatar

Doesn't when I tested just now. I'd question if you have multiple browsers open, or some extensions that make background requests.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76076
Avatar

Community saint

hmm browser extensions maybe let me look. Multiple browsers open nope.
Back to the top
 
Posted
Rating:
#76077
Avatar

Community saint

Ok so I did a little more testing. This is what I noticed. I cleared the sessions table and clicked the "Site" link form the already opened page. I had only 1 session record. but I noticed my local URL was differnt I had first visited http://localhost/ocp/ but now it was http://127.0.0.1/ocp/index.php?page=start so I cleared it again and revisited http:localhost/ocp and this is where I get 3 sessions started that look like this
the_sessionlast_activitythe_useripsession_confirmedsession_invisiblecache_usernamethe_zonethe_pagethe_typethe_idthe_title
198066361613186231922127.0.0.*00admin start   
16469178913186231922127.0.0.*00admin start   
22005023413186231901127.0.0.*00Guest start  Welcome to the Website
Back to the top
 
Posted
Rating:
#76078
Avatar

Right yes. The session is stored in a cookie. Cookies are stored against the domain. It redirected to the correct base URL, but would have lost it's session cookie. It possibly regained an old session cookie already stored for that domain, hence reactivating that rather than reactivating the one from the other domain.
Still don't know why it's 3 though.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76079
Avatar

Community saint

Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: