News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Log out problem

Started by !RFAN, March 29, 2010, 04:50:23 AM

Previous topic - Next topic

!RFAN

hello bros,
i donnt know why i get an error whenever i click on log out button. members are also facing same. this means member cannot log out. whenever he clicked log out button an error appears:

QuoteAn Error Has Occurred!

Session verification failed. Please try logging out and back in again, and then try again.

please help me in this :(

thanks

JimM

Make sure you have Admin > Configuration > Server Settings > Feature Configuration > Use database driven sessions [checked]

Clear your browser cache and cookies and see if that makes a difference.
Jim "JimM" Moore
Former Support Specialist

!RFAN

followed all instructions and tried 3 different browser but same result :(
any idea/??

JimM

Can you list any mods you have installed that may have modified the URLs?  Also do you use a custom theme?  If so, does this problem occur when you switch to the default (core) theme?
Jim "JimM" Moore
Former Support Specialist

!RFAN

i have Cargo theme by dzinerstudio and when i tried to logout on default core theme it was fine. this error appears only when i am using Cargo theme.

here is the list of mods i have installed:

Mod Name     Version     
1.    Ultimate Profile    0.9.1    
2.    Pretty URLs    1.0
3.    EXTRA Quick Reply Bar    1.0    
4.    Reply Button in All Posts    1.1    
5.    Global Headers Footers    2.0    
6.    Topic Title In The Center Under Linktree    1.5    
7.    Popular icons under signature    1.0
8.    Signature Area BBCode Buttons    2.0.1    
9.    Facebook Video BBC    1.0    
10.    Profile Fields & Icons Mod    1.0
11.    YouTube BBCode    2.6    [ Uninstall ]
12.    Megavideo BBCODE    1.1    [ Uninstall ]
13.    Table Plus BBCodes    1.2    [ Uninstall ]
14.    New Style Message Icon    1.1    [ Uninstall ]
15.    OnOffAvatar    1.0    [ Uninstall ]
16.    TextSizer    1.5    [ Uninstall ]
17.    Admin color in topic view    0.1    [ Uninstall ]
18.    Enhanced Calendar    1.1    [ Uninstall ]
19.    Improved Webmaster Email Settings    1.1    [ Uninstall ]
20.    Additional Home page Title | S-Ace    3.0    [ Uninstall ]
21.    AutoKeywords    1.3    [ Uninstall ]
22.    SMF Sitemap    1.2.2    [ Uninstall ]
23.    Custom Tab    1.2    [ Uninstall ]
24.    Auto Verification    1.0    [ Uninstall ]
25.    Default Membergroup on Registration    1.1    [ Uninstall ]
26.    Date_Registerd on post    1.0    [ Uninstall ]
27.    Custom Field On Posting    1.2    [ Uninstall ]
28.    Redirection Boards    2.01    [ Uninstall ]
29.    hof    1.0    [ Uninstall ]
30.    ColorizePost    1.2    [ Uninstall ]
31.    Song_Requests    1.0    [ Uninstall ]
32.    Go up post button    1.0    [ Uninstall ]
33.    Global Announcements    1.0    [ Uninstall ]
34.    Online status on login    1.5    [ Uninstall ]
35.    Timezone Select    1.1.2    [ Uninstall ]
36.    Topic description    1.1    [ Uninstall ]
37.    Display date and time    1.0    [ Uninstall ]
38.    SSI_Register_Function    1.0    [ Uninstall ]
39.    Hack's Park Shoutbox    2.0.2    [ Uninstall ]
40.    E-Arcade    2.5.9    [ Uninstall ]
41.    Disable Subject Change    1.5    [ Uninstall ]
42.    Arcadeworld Template    1.10    [ Uninstall ]
43.    AW Arcade Users Online    1.5    [ Uninstall ]
44.    Gender On Registration    1.0    [ Uninstall ]
45.    Color And BgColor BBCode Bar    3.3.1    [ Uninstall ]
46.    Relative Dates    1.1    [ Uninstall ]
47.    Image Popup    1.0    [ Uninstall ]
48.    Another URL Popup    1.0    [ Uninstall ]
49.    Smiley Code in Pop-Up Window    1.0    [ Uninstall ]
50.    SMF Articles    1.3    [ Uninstall ]
51.    Advanced Login Form    1.2    [ Uninstall ]
52.    Word Description    1.0    [ Uninstall ]
53.    Twitter and Facebook Publisher mod    2.4    [ Uninstall ]
54.    Case Insensitive Smileys    1.1    [ Uninstall ]
55.    Anti Bot: Are You Human/Bot?    2.3    [ Uninstall ]
56.    Colorized Membergroups    1.0    [ Uninstall ]
57.    Display Name On Registration    1.9    [ Uninstall ]
58.    Remove Reply Prefix    1.0    [ Uninstall ]
59.    arcwd    1.0e    [ Uninstall ]
60.    leaders    1.0    [ Uninstall ]
61.    Simple ImageShack

!RFAN


!RFAN


!RFAN

i dont think it is a server settings problem.. i told you that on other themes it works fine but on cargo it is showing error...

one more thing... if i set time duration to be logged in then i will be logged out automatically after that time.. i think it means that "Use database driven sessions"  function is not working... and if i set to be logged in always..i will never be able to logged out unless i clear my cookies..

i made the scene more clearer.. i hope i will get some great help in this matter..
http://www.amigozone.tk/forum

thanks

JimM

You don't state what version you are running.  1.1.11 added some additional session checks that would need to be added into the custom theme.

Here is a related topic that might help out.

http://www.simplemachines.org/community/index.php?topic=352528.0
Jim "JimM" Moore
Former Support Specialist

!RFAN

Quote from: JimM on April 03, 2010, 09:16:58 PM
You don't state what version you are running.  1.1.11 added some additional session checks that would need to be added into the custom theme.

Here is a related topic that might help out.

http://www.simplemachines.org/community/index.php?topic=352528.0

i cant open this :S

Quote
An Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.

my version is 1.1.11

JimM

I guess you have to join the Community Support group in order to see it.  I'll quote the pertinent part:

Quote from: Norv on December 06, 2009, 08:06:03 PM
Some modifications made by the 1.1.11 patch might result in perhaps more support requests after the update, with:
Quote
An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.

The reason is that the patch added code to verify the user's session token in places where it wasn't verified before, for security reasons. Yet, that can cause issues with modifications, and even themes. Or, as in this example, with a simple custom link that the user has added to their forum:
http://www.simplemachines.org/community/index.php?topic=352240.msg2393201#msg2393201

Some links have to contain now the session token, otherwise the extra session checks will fail. Some files (template files typically) will have now to add the security token to the request.
That can affect custom themes, as said. Custom themes will need to be updated, to work properly with 1.1.11, in case they have these files: (edits extracted from the patch instructions):
./Themes/default/Packages.template.php
Code (find) Select

// Version: 1.1.8; Packages

Code (replace) Select

// Version: 1.1.11; Packages


Code (find) Select

<a href="' . $scripturl . '?action=packageget;sa=remove;server=' . $server['id'] . '">[ ' . $txt['smf138'] . ' ]</a>

Code (replace) Select

<a href="' . $scripturl . '?action=packageget;sa=remove;server=' . $server['id'] . ';sesc=', $context['session_id'], '">[ ' . $txt['smf138'] . ' ]</a>


./Themes/default/SplitTopics.template.php
Code (find) Select

// Version: 1.1; SplitTopics

Code (replace) Select

// Version: 1.1.11; SplitTopics


Code (find) Select

<input type="hidden" name="sa" value="execute" />

Code (replace) Select

<input type="hidden" name="sa" value="execute" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />



ETA: there are many more cases, because of a bug in SMF 1.1.11:
http://www.simplemachines.org/community/index.php?topic=351870
When removing polls, using the "Remove Poll" link, the session verification error is thrown. The information passed to the removepoll action (by the link to the removepoll action, for instance) has to contain the session token as well. To fix this problem, please find in
./Themes/default/Display.template.php (note, the same for ./Themes/custom_theme/Display.template.php, this is a file that almost every theme out there has, too):
Code (find) Select

'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . "),

Code (replace) Select

'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . ";sesc=" . $context['session_id']),


Jim "JimM" Moore
Former Support Specialist

!RFAN

okay i have resolved this
thanks

Advertisement: