I have a main page with username and password etc.
If a user tries go direct to the other pages, there is code directing them back to the main page, and then displays an error message.
I have done this with using a Session to hold the text i want displaying on the main page.
The problem that i have is that when it directs back to the main page the Session text is not shown until you refresh that page....
What i am trying to do is something simple, and i have done it before without having this issue. But can not seem to find what i am doing wrong.
If a redirect to another page other then the first one that is shown, the session is shown.
Any help would be appreciated, and thanks in advance.
If a user tries go direct to the other pages, there is code directing them back to the main page, and then displays an error message.
I have done this with using a Session to hold the text i want displaying on the main page.
The problem that i have is that when it directs back to the main page the Session text is not shown until you refresh that page....
What i am trying to do is something simple, and i have done it before without having this issue. But can not seem to find what i am doing wrong.
If a redirect to another page other then the first one that is shown, the session is shown.
Any help would be appreciated, and thanks in advance.