Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: login / logout doesn't work?  (Read 4417 times)

0 Members and 1 Guest are viewing this topic.

Deirdre

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
login / logout doesn't work?
« on: May 05, 2004, 09:04:50 pm »

uh.. still one problem:

I can't logout! it says: goodbye Deirdre... but doesn't do anything.

and my testmember can't login! Just the notice that login is not possible.

here the code from theme.php, I thought perhaps the error is there:


<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
<!-- END register -->
<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout --><br />
<!-- BEGIN album_list -->
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: login / logout doesn't work?
« Reply #1 on: May 06, 2004, 12:09:41 am »

Sounds like a cookie problem.  Try deleting your cookies.

Can you give a test user account and password (not admin).
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: login / logout doesn't work?
« Reply #2 on: May 06, 2004, 06:27:59 pm »

uh... problem: a friend of mine who I told to create an account can't find a register-link. Don't know wether she's too stupid or if there's a bug in my template...

http://www.deirdre-design.de/album/
this is the link.. perhaps you can create an account and test?

Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: login / logout doesn't work?
« Reply #3 on: May 06, 2004, 06:42:21 pm »

Hi Dierdre,

First, this thread is about you being unable to log off. Please confirm if this is solved.  Then, please do not ask new questions about different problems on an existing thread, even if started by you.

Your friend cannot see the register link, because it isn't there.  I can't see it either.  Looking at your code, it is missing.

Open your theme.php, and make sure this code is there;

Code: [Select]
<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
<!-- END register -->
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: login / logout doesn't work?
« Reply #4 on: May 06, 2004, 11:15:09 pm »

here the code from theme.php, I thought perhaps the error is there:


<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
<!-- END register -->


it is there. And still can't logout.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: login / logout doesn't work?
« Reply #5 on: May 06, 2004, 11:48:29 pm »

Well it's not showing when I visit the site.  Please post here this full section of your code, in theme.php;
Code: [Select]
// HTML template for main menu
$template_main_menu = <<<EOT

It seems to me you have over modified your theme.php
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: login / logout doesn't work?
« Reply #6 on: May 07, 2004, 12:09:20 am »

only the first section?

// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu" align="right">
<!-- BEGIN album_list -->
                        <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
<!-- END album_list -->
<!-- BEGIN my_gallery -->
                        <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a>
<!-- END my_gallery -->
<!-- BEGIN my_profile -->
                        <a href="{MY_PROF_TGT}">{MY_PROF_LNK}</a>
<!-- END my_profile -->
<!-- BEGIN enter_admin_mode -->
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
                        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a>
<!-- END upload_pic -->
<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a>
<!-- END register -->
<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->

                        <br />
                        <!-- <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> :: -->
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> ::
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> <br />
                        <a href="{FAV_TGT}">{FAV_LNK}</a> ::
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>
                </span>
EOT;
// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT


I thought I could perhaps copy it from a different layout, but it doesn't change anything :(
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: login / logout doesn't work?
« Reply #7 on: May 07, 2004, 12:25:52 am »

Suddenly it hit me  ::)

You almost certainly have 'Allow new user registrations' set to NO, in config.

As for your unable tolog out, please give us a link and test user account (not admin).
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: login / logout doesn't work?
« Reply #8 on: May 07, 2004, 01:26:18 pm »

*hit head against wall*

ok... I am so stupid.

Testuser is: Casper PW: ghost

http://www.deirdre-design.de/album
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: login / logout doesn't work?
« Reply #9 on: May 07, 2004, 09:15:20 pm »

Ok,

I was able to log in and out as normal, so I still think this is a cookie issue.  There is one other possible cause, that is that your computer internal clock is wrong, but this normally stops you logging in, not out.  Try making sure that is correct, delete all cookies related to your site, and try again.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: login / logout doesn't work?
« Reply #10 on: May 07, 2004, 10:40:20 pm »

Hi there,

well, I thought logging in  and out was the same problem. But as my users now can create an own account, everything is fine :)
I won't die if I can't logout.´

Thank you very very much :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: login / logout doesn't work?
« Reply #11 on: May 08, 2004, 07:58:24 am »

if you're logged in as admin, go to coppermine config and change the cookie name - this will log you out for sure (the disadvantage: all your users will have to re-enter their usernames and passwords on their next visit, the "remember me" setting will not work for them once).

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.