Yeah, I think you can do that with cookies. However, you may run into the same problem as with the Sessions: that IE cannot share the cookies between the page in the frameset.
If that seems to be the case, make sure you set the Expire property of the cookie. This will force IE to write the cookie to disk, so it will be available to other pages in the frame set.
A few things, though. First of all, this isn't very secure. If you're using the cookie just to display a welcome message, there isn't much of a problem. However, if user 44 is a normal user and user 1 an Administrator, it will be too easy for the user to gain access as an admin, by changing the value of the cookie.
Secondly: try ditching the frames, if possible. They are really a nineties technology, and shouldn't have a place in most modern applications. They cause more problems than they solve and all their benefits can be simulated using either Server Side Includes, or some DOM scripting.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|