There's to much code (messy!) to post. I'm using a modded verion of cubecart. I know it was written for use with register globals on. The php manual says it's best not to use session_register() and $SESSION[''] together so I have replaced session_register()'s with $SESSION['']'s.
There is no referance to $_SESSION['artist']; or session_register(artist) in my index.php only $artist (pulled from the db).
This is whats in my session when I login as 'this_artist' :
Values submitted via SESSION method:
artist => this_artist
user => this_username
When I go to my index page$artist = this_other_artist is used to display a random artist.
Values submitted via SESSION method still shows:
artist => this_artist
user => this_username
I refresh the page then values submitted via SESSION method now shows:
artist => this_other_artist
user => this_username
Hope you can follow that..
I've checked every file include to make sure there is nothing overwitting the $_SESSION['artist'] and I can not find anything. I'll keep going over it....