This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Hi, i am using parameter in my url through links for example /mypage.jsp?id=12&name=abc. now users can see these parameters in url and they can change the values (eg. /mypage.jsp?id=34&name=def). this can cause pages to behave differently. i want to detect if user has changed id and name by himself. what would be best approach in sovling this problem. Thanks, Khurrum
Desai Sandeep
Ranch Hand
Joined: Apr 02, 2001
Posts: 1157
posted
0
Hi khurrum, I would suggest, you validate the id and the name on every JSP page for which you would want the user to access. When client requests a page, he would be assigned and id and a name by your web server.You may consider storing this in some temparary variables, probably in the Session implicit object to validate it with the id and name, in case the user makes anu changes. Hope this helps. Regards,