View Issue Details

IDProjectCategoryView StatusLast Update
0003504mantisbtbugtrackerpublic2004-07-08 07:09
Reporterndeboer Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.0 
Fixed in Version0.19.0a1 
Summary0003504: project cookie not cleared at logout
Description

The project cookie is nog cleared at logout which gets the user back at the last project instead of the prefered project. Other cookies are probably also not cleared.

Steps To Reproduce

Login, set prefered project, change project to other, logout and re-login.

TagsNo tags attached.
Attached Files
helper_api.diff (545 bytes)   
192,194c192,201
< 		gpc_clear_cookie( 'project_cookie' );
< 		gpc_clear_cookie( 'view_all_cookie' );
< 		gpc_clear_cookie( 'manage_cookie' );
---
> 		$t_cookie_path = config_get( 'cookie_path' );
> 
> 		$t_cookie_name = config_get( 'project_cookie' );
> 		gpc_clear_cookie( $t_cookie_name, $t_cookie_path );
> 
> 		$t_cookie_name = config_get( 'view_all_cookie' );
> 		gpc_clear_cookie( $t_cookie_name, $t_cookie_path );
> 
> 		$t_cookie_name = config_get( 'manage_cookie' );
> 		gpc_clear_cookie( $t_cookie_name, $t_cookie_path );
helper_api.diff (545 bytes)   

Relationships

has duplicate 0003845 closedvboctor User not redirected to default project [with solution] 

Activities

ndeboer

ndeboer

2004-03-24 07:31

reporter   ~0005254

The function "helper_clear_pref_cookies" in file "core/helper_api.php" is not correct. I have rewritten it to:

--------------------

Clear all known user preference cookies

function helper_clear_pref_cookies() {
$t_cookie_path = config_get( 'cookie_path' );

$t_cookie_name =  config_get( 'project_cookie' );
gpc_clear_cookie( $t_cookie_name, $t_cookie_path );

$t_cookie_name =  config_get( 'view_all_cookie' );
gpc_clear_cookie( $t_cookie_name, $t_cookie_path );

$t_cookie_name =  config_get( 'manage_cookie' );
gpc_clear_cookie( $t_cookie_name, $t_cookie_path );

}

ndeboer

ndeboer

2004-03-26 02:41

reporter   ~0005267

I have attached the diff file to this bug. Please apply this code to CVS. Thanks.

vboctor

vboctor

2004-05-17 11:05

manager   ~0005527

Fixed in CVS. Will be included in 0.19.0.

Related Changesets

MantisBT: master 6a9bedf9

2004-05-17 11:09

vboctor


Details Diff
Fix 0003504: project cookie not cleared at logout

M core/helper_api.php
- (helper_clear_pref_cookies): Function was clearing cookies using the wrong cookie names.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2544 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0003504
mod - doc/ChangeLog Diff File