I have a system where the member can log in and edit their profile or download articles relevant to their area. These two links are on the index page. Editing the profile grabs the ID from the logged in session and pulls up the members details from the “MEMBERS” table (username and password also resides there). On the downloads page I have a table containing all the downloadable articles. This page uses a table called “FILES”. This table has it’s own ID field.
My problem comes in when you download an article. Once you’ve done that (that works fine, by the way), and return to the index page, the “Edit Profile” links adopts the ID of the downloaded file on the downloads. I think it’s because on the downloads page there is a “isset” script for the ID. So it brings that ID back to the index page. How do I prevent that? How do I get it that even after a file is downloaded, returning to the index page has the “Edit Profile” link referring to the logged in session and not the ID that was set on the downloads page. I’ve tried “unset(&_REQUEST[‘id’])” – excuse the syntax, it’s just an example – but that didn’t work either.
Can anyone help?
Thanks,
Karen