Help - Search - Members - Calendar
Full Version: Login Won't Remember User
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
Nos402
I have two installation of MT on two different servers. One remembers my login info after I login once and check the "remember me" box. The other seems to only remember me temporarily. I haven't yet pinpointed when it forgets me but it seems to be one of two things:

Possibly when I reboot or else after a certain period of time. Even after closing the browser and re-opening it will still remember me, but usually by the next day I have to login again.

My other installaiton remembers me indefinitely. Any ideas?
Nos402
Argh! This is driving me crazy! I've made sure both sites have the same mt.cgi, the same mt.js file, and compared everything I can think of. One site goes right ot my control panel every time I go there and the other makes log in daily. I just tried restarting on two different machines and I was still logged in so it seems possibly time based/ Are there any other files involved I could look at?
maddy
When you look at the cookie set, what is the expiry date? If the expiry date set (it should be 10 years in the future when you select "Remember Me", and end of the session otherwise) is correct, and you're still not remembered (and aren't logging out), I'd check your browser settings.
theonetruebix
QUOTE (maddy @ Oct 9 2005, 03:04 PM)
When you look at the cookie set, what is the expiry date? If the expiry date set (it should be 10 years in the future when you select "Remember Me", and end of the session otherwise) is correct, and you're still not remembered (and aren't logging out), I'd check your browser settings.
*


FWIW, my situation (described by me in a thread over in the Installation forum) is comparable to the one here, wherein other installations of MT 3.2 continue to work fine for me, but not the one I just installed a couple of days ago.

It's very rarely setting a cookie at all (when it does, and I manage to get a look at it, it has the proper long-future expiration daye), but it shortly thereafter, within 2 clicks thru the CMS, I'm bumped back to login and there's no cookie in my cookies at all.
Nos402
My solution ended up being re-uploading all the MT files again. After I did this it worked as expected. Weird.
njesson
I am also having a problem with MT forgetting the user. However it happens every step. It is deleting the cookie at every stage.

I upgraded to MT 3.2 without any difficulty a week ago. I also installed a number of new plugins, including the new MT-Notifier. Unfortunately, you can no longer manipulate your Notifier subscriptions with Notifier. There is a work around available, but it only works if you are using the MySQL database.

No problem, I switched from the Berkeley database to the MySQL database. The mt-db2sql.cgi script transferred the data without difficulty. I have confirmed that the data is properly loaded into the SQL tables.

I am able to log in to MT. The usernames are recognized. It places the mt-user cookie properly with a 10 year expiry. However, as soon as I click on any link, it asks me to enter the username and password again. When I checked the cookie folder, I discovered that the cookie had been deleted.

I can revert to the Berkeley database and everything works properly. However, this won't resolve my Notifier problem.

Any ideas why MT would be deleting this cookie?

Nick
hechtic
I am having the exact same problem as Nick. Is there an easy fix for this?
lisa
QUOTE (njesson @ Nov 16 2005, 04:34 PM)
I am also having a problem with MT forgetting the user. However it happens every step. It is deleting the cookie at every stage.
*


Look and see if you have mt_session in your tables. If not, create it using:
CODE
    CREATE TABLE `mt_session` (
   `session_id` varchar(80) NOT NULL default ,
   `session_data` mediumblob,
   `session_email` varchar(255) default NULL,
   `session_name` varchar(255) default NULL,
   `session_start` int(11) NOT NULL default '0',
   `session_kind` char(2) default NULL,
   PRIMARY KEY (`session_id`),
   KEY `session_start` (`session_start`)
   )
lisa
QUOTE (hechtic @ Dec 21 2005, 11:49 AM)
I am having the exact same problem as Nick. Is there an easy fix for this?
*

Look and see if you have mt_session in your tables. If not, create it using:
CODE
    CREATE TABLE `mt_session` (
   `session_id` varchar(80) NOT NULL default ,
   `session_data` mediumblob,
   `session_email` varchar(255) default NULL,
   `session_name` varchar(255) default NULL,
   `session_start` int(11) NOT NULL default '0',
   `session_kind` char(2) default NULL,
   PRIMARY KEY (`session_id`),
   KEY `session_start` (`session_start`)
   )
hechtic
Hi Lisa-

Could you explain how to do that for us less technical folks.

thanks,


Andrew
lisa
Hi Andrew,

Hopefully your webhost has something like phpMyAdmin for you to use with your database. If not, you'll want to contact them and ask for help.

So, if you have phpMyAdmin, you'll sign in. Then click on your database name in the left hand column (you'll see your database name followed by a list of your tables). In the right side of the screen, you should have a link to "SQL". Click on that. Paste the table definition I provided into the text box and click "GO". That should create your table for you. smile.gif

Lisa
hechtic
Hi Lisa-

I checked and I have mt_session. What next?

thanks,

Andrew
lisa
See this Knowledge Base article:
http://www.sixapart.com/movabletype/kb/ins...getting_lo.html
hechtic
Ok, making progress. Looks like the login request problem has been solved.

Now If I could only post and receive comments.

I'm still getting this error:

QUOTE
Building date-based archive 'Monthly20051201000000' failed: Build error in template 'Date-Based Archive': Error in <MTEntryDate> tag: You used an 'MTEntryDate' tag outside of the context of an entry; perhaps you mistakenly placed it outside of an 'MTEntries' container?


when I try to post new entries.

here is my date-based archive page:

QUOTE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<title>American Idle | Ask Your Doctor If American Idle Is Right For You</title>

<link rel="stylesheet" href="<$MTBlogURL$>style_master.css" type="text/css" />

<$MTInclude module="javascript"$>
<$MTInclude module="metatags"$>

<MTBlogIfCCLicense>
<$MTCCLicenseRDF$>
</MTBlogIfCCLicense>



</head>


<body>

<div class="clearfix" id="container">


<div id="header">
<$MTInclude module="randomheader"$>
</div> <!-- header -->




<div id="blogentries">
<!-- BLOGENTRIES -->



<!--<h1><$MTEntryDate format="%B %Y"$></h1> -->


<MTEntries>
<$MTEntryTrackbackData$>
<p><span class="category"><a href="<$MTEntryLink$>"><$MTEntryTitle$></a></span><span class="category"><$MTEntryDate format="%B %d %Y"$></span>
<br><span class="blogbody"><span class="archiveexcerpt"><$MTEntryExcerpt convert_breaks="1"$></span></span>
<br />
</MTEntries>



<!-- BLOGENTRIES -->

</div>  <!-- blogentries -->



<div id="links">
<$MTInclude module="navigation"$>

</div> <!-- links -->




</div> <!-- container -->

<br style="clear: both"/>
</div>
<div id="footer">
<$MTInclude module="footer_main"$>
</div> <!-- footer -->


</body></html>



Please let me know what I should do.


thanks in advance,


Andrew
lisa
What do you have set for your Archive Mappings? You may want to delete them and set them up again to see if this resolves the issue.
hechtic
I copied the default Date-Based archive to my templates and seems to have solved the problem. Thanks for your help.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.