re-named cookie & broke login
Number of replies: 18Thanking you in advance,
John "I mod, therefore, I am" Captain
Re: re-named cookie & broke login
Re: re-named cookie & broke login
The odd part is that these Moodle cookies expire at the end of the session so a new session should re-generate and in you go. No such luck. I haven't made any other changes, honest, haven't touched anything but the cookie name.
I can login here but not there. I definitely broke something when I changed the cookie name. As soon as I clinked a link in my site I was returned to the login page. Unable to login since.
It seemed like such a harmless little adventure...
Thanks,
John
Re: re-named cookie & broke login
Re: re-named cookie & broke login
Sop much for the cool stuff.. eh..hehe
Have you tried to clean you chache and any cookies just so there isn't one still there messing with your system some way, so you get a fresh start on the cookies..
Re: re-named cookie & broke login
...never, I'll never give up...
"I Moodle, therefore, I'm cool"
"Don't trust anyone over 30... uh, I mean 60"
"I mod, therefore, I am"
Anyway, ok, so, yep, I've re-booted even. I've even tried to login using 3 different computers. The new "cool" cookies are being accepted. This isn't a Moodle problem, it's an admin problem.
Thanks Gentlemen,
John
Re: re-named cookie & broke login
Thanks
John
Re: re-named cookie & broke login
Also, I can use the same config with a different table prefix. Login and everything else works fine.
I changed the prefix, in my config.php file, uploaded to my existing broken Moodle, to make the site operational. I login no problem. I logout no problem. I login and logout at will.
I changed the name of the cookie for the new site and this had no effect on the site operation. I login no problem. I logout no problem. I login and logout at will.
I now have a database containing tables with different prefixes. I can change the prefix in my config.php file and upload it to the server and the new set of tables allows normal operation. I change the config.php file to use the old tables and I can't login.
The exact same files are used for both sessions. The only difference being the table prefix in my config.php file. This makes me think that I may be able to change something in the tables that were being used when I broke my site. Can anybody offer suggestions or best guess or even totally ridiculous experiment that may help me get my Moodle back in business? Everything's there. I just can't login, not even as a guest.
Thanks,
John

Re: re-named cookie & broke login
Re: re-named cookie & broke login

Thanks Martin
PS: One difference I did notice between the two sites was this. I use a javascript to obfuscate an e-mail address and it wouldn't work with the site using the new tables?
PS: It's actually kinda cool running two Moodles at the same time. I used the temporary site to display a news item saying we were down for maintenance. Because the site looked identical it looked plausible.
Re: re-named cookie & broke login
Re: re-named cookie & broke login
Do you mean to delete the session cookie from the /admin/config.php
or from the config entry in the database itself ....
because I do not have a session cookie in the DB itself and the /admin/config.php doesn't do anything ....
HELP I BROKE MY MOODLE !
Re: re-named cookie & broke login

Re: re-named cookie & broke login
I notice your table shows only 30 ID's.
There is a button to show the next 30 ID's . Are your shure it isn't listed there ?
Re: re-named cookie & broke login
I definatly appreciate your help Herbert, but I have already dropped my database and started fresh ... I have a new class starting tommorow morning, and If I was gonna have to drop the DB then I had to do it then so I could start rebuilding ...
Thank you for your concern ..problem solved ...the hard way !
Re: re-named cookie & broke login
DOH!
I had this same problem, when I changed the cookie name, and yes I could not find the setting in the db, and sure enough I was limiting my list to 50 entries. changed my cookie back to what it was before and I can now log in.
Scot
Re: re-named cookie & broke login
Re: re-named cookie & broke login
myhbc.info
Scot