i used this for after login redirection previous page
System > Config > Customer >Custumer Redirect Customer to Account Dashboard after Logging in > NO
It's working fine. But my problem is
First i login it redirects to home page but top link still showing login only after refresh my browser does it change to logout
if i set
System > Config > Customer > Customer Redirect Customer to Account Dashboard after Logging in > yes
it's working fine redirect to my account page and top link changes to logout
How do i fix it?