I would personally use the header tag aswell.
Now the session assign means basically..
When a user logs in, It simply sets a session to 1 and assigns the usersID to another session, so basically as long as those are assigned right your auto login should work perfect. =)