MOCpages : Share your LEGO® creations
LEGO models my own creation MOCpages toys shop MOCpages help
Welcome to the world's greatest LEGO fan community!
Explore cool creations, share your own, and have lots of fun together.  ~  It's all free!
Conversation »
Mocpages keeps logging me out...
Join to comment
Hi,

I don't know if this is a problem that can be solved, but Mocpages keeps on logging me out at random times. For example: I was logged in earlier, and I clicked to go on my group 'Lamborghini Onwers club' (it doesn't just happen to me on this group) and I noticed it asked me if I wanted to join the group, and it had logged me out... I was logged in just one click before though...

This has been happening for a while now, and it is starting to get a bit annoying.

Any help would be really appreciated.

Thanks
Harry G :)
Permalink
| July 27, 2012, 1:42 pm
I had a look at your page and I can pretty much guarantee I know what your problem is...

MOCpages responds to requests for both these:
http://mocpages.com/...blah...
http://www.mocpages.com/...blah...

Unfortunately, it doesn't redirect one to the other, and cookies (which are used to track your logged in session) can't exist on both types of address at the same time.

Thus, if you bookmark a mocpages page *without* the www or otherwise use such an address as a link (as you have done on your home page) and subsequently log in to mocpages *with* the www and then click on the non-www link, it will believe you are not logged in.

Best to ensure you use www everywhere.

Unfortunately you can't control what form of address other people use when they are logged in and looking at your page, so if you link with the www and another user logs in without the www he will also be told he is not logged in when he visits your link. Ultimately the problem would only ever fully go away for everyone if this site implements a redirect properly.
Permalink
| July 28, 2012, 5:22 am
Quoting cosmicxanadu 2012
I had a look at your page and I can pretty much guarantee I know what your problem is...

MOCpages responds to requests for both these:
http://mocpages.com/...blah...
http://www.mocpages.com/...blah...

Unfortunately, it doesn't redirect one to the other, and cookies (which are used to track your logged in session) can't exist on both types of address at the same time.

Thus, if you bookmark a mocpages page *without* the www or otherwise use such an address as a link (as you have done on your home page) and subsequently log in to mocpages *with* the www and then click on the non-www link, it will believe you are not logged in.

Best to ensure you use www everywhere.

Unfortunately you can't control what form of address other people use when they are logged in and looking at your page, so if you link with the www and another user logs in without the www he will also be told he is not logged in when he visits your link. Ultimately the problem would only ever fully go away for everyone if this site implements a redirect properly.


Thank you :)
Permalink
| July 28, 2012, 5:58 am
Quoting Harry Gravett

Thank you :)


No prob.

Actually, having thought about it some more, there is a way you can do those links so they work regardless of whether a visitor to your page has included the www or not.

Instead of linking to mocs and groups like this:

http://www.mocpages.com/moc.php/...?????...
http://www.mocpages.com/group.php/...?????...

Link like this:

/moc.php/...?????...
/group.php/...?????...

This will keep them on the www or non-www version they are already on and thus it should keep them logged in regardless of which one they were already on.

NOTE: those latter links will only work when used within a page hosted on MOCpages. If you link to a MOCpages page from an external site or a bookmark, you'll have to use the full link version (and live with the www non-www problem, for now).
Permalink
| July 28, 2012, 6:32 am
same to me
Permalink
| July 29, 2012, 7:39 am
Other topics
Uploading Photos Updated today
Ipad help Updated today
Questions? Updated Thursday



LEGO models my own creation MOCpages toys shop MOCpages help


You Your home page | LEGO creations | Favorite builders
Activity Activity | Comments | Creations
Explore Explore | Recent | Groups
MOCpages is an unofficial, fan-created website. LEGO® and the brick configuration are property of The LEGO Group, which does not sponsor, own, or endorse this site.
©2002-2014 Sean Kenney Design Inc | Privacy policy | Terms of use