[2.0 RC3] help for "You were unable to login. Please check your cookie settings"

Started by orangpelupa, May 20, 2010, 09:09:27 AM

Previous topic - Next topic

orangpelupa

hello, i have searched for "You were unable to login. Please check your cookie settings." and i still need a help.
(btw sorry my english, i hope its understand-able)  ;D

Problem Description:
Because i use URL cloaking http://hma.undip.ac.id/ to cloak the real url http://arsitek.bramantya.org/, sometime me and the forum member will get "You were unable to login. Please check your cookie settings." error.

the proposed solution on the search result for "You were unable to login. Please check your cookie settings." is to disable the cloaking.

i think i have the idea to make loggin in work normally while still using the url cloak. But im not an programmer, and i dont understand programmin so im very sorry if im wrong.  :'(
so i need someone to help me, create a php script for me.

the idea:

Alternative 1.
may i know what file to Edit?
that display "You were unable to login. Please check your cookie settings." to add a php script to reset/remove/clear the SMF cookies.

maybe adding this php code? (its from here -> http://www.ramui.com/articles/php-cookie.html )

Expire or delete cookie
To delete or reset a cookie use PHP setcookie() function. The following command will delete cookie 'userdata'.

<?php setcookie('userdata'); ?>

Alternatively you can force cookie to expire by setting expire date before the current date. So the following command will expire the cookie 'userdata'.

<?php setcookie('userdata','',(time()-3600)); ?>



so Everytime the user got "You were unable to login. Please check your cookie settings." error,  it will automatically reset/remove/clear the SMF cookies. Thus allowing the user to login again. (because if i clear cookies manually on web browser, i can login again)


Alternative 2.

make something like this on the index page.

When Referer = [http://hma.undip.ac.id/]
Clear cookie [smfcookies]


so it will clear cookies for everyone using http://hma.undip.ac.id/. This will disable "forever logged in" feature, but maybe will fix "You were unable to login. Please check your cookie settings" problem.

sorry if my idea is weird. i dont understand programming  :-[
please help create the script if the idea i wrote above looks can work  ;D

thanks a lot.
sorry my english


Allusion

It's strongly recommended not to mess with the SMF security.

You are saying that the error happens sometimes, not always, right? Do you know how to reproduce the error? Or is it totally random?

Does it happen when you try from http://<your_cloaking_url>/index.php?action=login (the login page)?

What browser are you using? Does the issue happen with other browsers?

orangpelupa

i think it not editing the SMF security. the only thing that the script do (or i want it to do) is just delete cookies. sorry if im wrong.

its happening sometime but will always happend.

to reproduce:

1. login from cloaked url
2. close the web tab
3. open the cloaked url. it will asking to login again even when im not logged out.
4. i put username and password, login, and Bam.... that error willl displayed

that will happen randomly but usually atleast once a day.

Browser i use Firefox, IE8, Opera. Seems happened mostly on IE8, rare on Firefox, only happened once  and never happened again on opera.

thanks, and sorry my english

EDIT:
currently i edited the "You were unable to login. Please check your cookie settings" word to "You are using Internet Explorer, please use Firefox or Opera."

and it seems effective  lol. The forum members can login by not using IE.

Allusion

A search in this forum shows some posts that indicate that IE doesn't like SMF in an iframe.

Advertisement: