← Back to team overview

mahara-contributors team mailing list archive

[Bug 1592236] Re: Sessions: constantly asked to log in to access the Users Admin screen

 

Ah, now that is interesting. If the cookies have different paths, then
that would indeed explain the problem. In the browser, a cookie is
uniquely identified by its name, domain, and path.

Mahara is *supposed* to set the session cookie's path to be only the
path portion of $CFG->wwwroot, so that all Mahara pages will use the
same session cookie. Somehow your site is failing to do that under
certain circumstances, and instead sending out ones with "/admin/site",
which the browser then interprets as an entirely separate cookie.

Hm, it gives me something more specific to look at, but I still can't
replicate it.

** Changed in: mahara
       Status: Incomplete => In Progress

** Changed in: mahara
       Status: In Progress => Triaged

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1592236

Title:
  Sessions: constantly asked to log in to access the Users Admin screen

Status in Mahara:
  Triaged

Bug description:
  Mahara: 16.04.1
  DB: Postgres
  OS: Linux
  Browser: Firefox

  
  I think there may be something funny with sessions happening. When the session times out (it's currently set to 2 hours) and I'm on the /admin/users/search.php, I think it doesn't correctly update the session once I log in again.

  This is what I think the steps are to reproduce it:
  1. leave screen on /admin/users/search.php

  2. have the session time out

  3. try to do something on the screen (i.e. search for a user)

  4. It will redirect to the login screen.

  5. Login correctly

  6. user search screen is displayed.

  7. click on the Configure Site menu link

  8. Click back on the Users menu link

  9. It will ask you to log back in again.

  
  It seems to only happen on the Users (and Group - I think) menu links.

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1592236/+subscriptions


References