java - Securing a jsp page -


i developing web application in jsp. in application here page direction flow->

page -> page b -> page c 

final page c should seen if user visits b , b can seen if user visits a. how make possible in jsp. should use session-cookie or there other way? new in servlet. ideas or links helpful me.

nb: if cookie generated can request c page cookie in headers. how make more secure?

there many ways tell if user visited page a, and/or b.


if want reinforce security of current system, recommend using hashing algorithm, such sha256 or md5, , hash user's ip address before storing it, , hashing user's ip address next time visit.

also if have php server set up, can use store weather user has visited page yet, either via database, or file containing ip addresses.

another way can put of html in 1 file, , use javascript swap them out, , have full control of page user sees first. think of option settings app of phone; has list of buttons, each of bring page, of contained in same app.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -