Follow us on Facebook and Twitter!

admin login issue
#11
Hello,

Sorry to be a pain Steven, but would you be able to point me to which file controls the order of authentication? This is still happening and fasthosts have drawn a blank Sad

Many thanks again
Reply
#12
ok... update... had a server specialist look at this whole thing and they suggest it's due to load balancing. Which kind of makes sense -the site is on 2 separate servers and users will be served the site from either server depending on the load, they may also go from one to the other whilst browsing the site. This becomes a problem when they login and the script stores their session as a php session on the server itself, if they are flicked over to the other server the session is not there and they are asked to login again. This would normally be solved by storing the php sessions in the data base so they are there no matter which server the visitor is on. I take it something like this would be a very extensive rewrite so probably isn't in the roadmap?

Many thanks
Reply
#13
I'd have a go at this myself but I'm not even nearly knowledgable enough about databases and php
http://culttt.com/2013/02/04/how-to-save...-database/
http://shiflett.org/articles/storing-ses...a-database
Reply
#14
Hi,

Thanks for letting me know about this. It probably explains why quite a few other people have had similar logging-out issues in the past.

Storing sessions in the database does appear to be an extensive change which I would like to avoid if possible, especially since I believe this to be a problem introduced (and therefore solvable) by the host. However I will definitely look into it over the next day or two to see exactly how feasible it is.

In the meantime I found a few links that you might find useful.

- http://stackoverflow.com/questions/34808...rs#3480889
- (using memcached)

- http://stackoverflow.com/questions/34808...rs#3481088
- (maybe there is a 'sticky sessions' feature that they can enable)

- http://www.fasthosts.co.uk/knowledge-bas...cle_id=440
- (disabling load balancing could be another option)
Have you completed the interview?
Reply
#15
Yeah, unfortunately the 'business platinum' hosting package I'm on with fasthosts has load balancing built in but it's not removable, it's a fixed part of the package - I already asked =).

I'll pop them another mail and ask if they can enable sticky sessions but they're (understandably) reluctant to mess with servers that have live sites on them.

I'd have a go at tweaking the script myself but I know jack about MySQL and sessions Smile

Thanks for the help though, and yeah, I really kicked myself that I hadn't worked out load balancing as the issue. D'oh!!

-Johan
Reply
#16
No joy - can't get them to do sticky sessions and memcached is a dedicated server-only option. Sod's law, I go for the most expensive 'business platinum' option hoping for the greatest flexibility and it's the only package that you can't disable load balancing on. Meh.
Reply
#17
Wow, am I impressed with Fasthosts now!!!!!!!! So after having been told twice by the tier 1 and tier 2 engineers that 'no can do', I did a little digging and found out they use F5 load balancing from a job ad of theirs. I then did some homework and found the documentation for them to enable sticky sessions. Jumped onto my twitter account which has 30k followers (hey I'm a marketing guy!) and after a little 'discussion' over twitter someone at Fasthosts picked up my tweet and took up the case. End result is they're changing their entire business platinum hosting package and updating all the servers to now have sticky sessions... and they're doing all this by end of play today. How amazing is that?!!
Reply
#18
Yep, just to add final confirmation, this has completely solved the 'having to log back in all the darn time' admin logout issue. Very cool.
Reply
#19
Nice work in bringing it to their attention, and respect to them for fixing it quickly, although I was surprised it was configured like that in the first place. I'm sure this will help a lot of people. Most of all, glad to hear you can now stay logged in!
Have you completed the interview?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Big Grin Strange 404 Error When Hovering Over Admin Menu Methyus 6 1,940 01-Nov-2015, 11:50 AM
Last Post: Methyus
  "There is an issue with Commentics.org" johan 4 2,228 11-Apr-2014, 07:56 PM
Last Post: Steven
  Clean URL's issue? MuffinMan 6 4,797 23-Apr-2013, 01:34 PM
Last Post: Steven
  admin detection not 100% working MuffinMan 2 1,857 20-Apr-2013, 06:03 PM
Last Post: MuffinMan
  [admin link] not correct starchild 2 1,550 13-Mar-2013, 03:04 PM
Last Post: Steven
  Admin login never works fatduckling 14 7,473 19-Sep-2012, 08:30 PM
Last Post: Steven
  admin page doesn't log in.... harvard1932 10 5,384 30-Jul-2012, 08:22 PM
Last Post: harvard1932
  add video issue zifzif 2 1,574 03-Jul-2012, 03:24 AM
Last Post: zifzif
  Admin Label Position Steven 0 1,154 04-Mar-2012, 03:36 PM
Last Post: Steven
  Incorrect URL in Admin (Pages) archym 2 2,151 02-Jul-2011, 03:29 PM
Last Post: archym

Forum Jump:


Users browsing this thread: 1 Guest(s)