ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Logout not working

May 10, 2011 1:09pm

Subscribe [3]
  • #1 / May 10, 2011 1:09pm

    Loquela

    105 posts

    Hi there,

    I am trying to use

    <a href="http://{path=logout}">Logout</a>

    but it’s not logging me out.

    The URL it’s creating is ?ACT=17

    EE Build:  20110411

    Thanks in advance for your help.

  • #2 / May 11, 2011 5:04am

    John Henry Donovan

    12339 posts

    Simon,

    Try using caps in there

    <a href="http://{path=LOGOUT}">Log out</a>

    Are you using a htaccess file?

    Are you logged into the control panel at the same time?

  • #3 / May 11, 2011 5:26am

    Loquela

    105 posts

    Thanks John,

    Your questions were helpful.

    It look like it’s my .htaccess file:

    RewriteEngine on 
    
    RewriteBase /
    
    RewriteCond $1 !^(images|system|themes|favicon\.ico|robots\.txt|index\.php) [NC]
    RewriteRule ^(.*)$ index.php?$1 [L]

     

    I’ve hacked it by hardwiring the logout link thus:

    <a href="http://{site_url}index.php?ACT=17">Log out</a>

    This works but is it reliable?

    Also, I find that my .htaccess file prevents me from using session ids for member tracking.

    Thanks,

    L.

  • #4 / May 12, 2011 6:13pm

    Sue Crocker

    26054 posts

    Hi, Loquela.

    Unfortunately we can’t officially assist in troubleshooting .htaccess problems with removing index.php.

    If you rename your .htaccess file and put back in index.php, do things work as expected? If they do, I can move this over to the Community Help forum for additional community support..

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases