简体   繁体   中英

how to restrict access to page via url in drupal 6

i am building an web store. the store have 4 steps form like so: ($items['soda/checkout/1'] , $items['soda/checkout/2'] , $items['soda/checkout/3'] , $items['soda/checkout/4']) each step can be access only if the former steps have been submited.

I want to restrict access so that users cant jump from 1st stage to 3rh 4th...

how can i do it?

Although, you can use value of $_SERVER['HTTP_REFERER'] to determine the referrer of current page. But it is not reliable.

Instead, you can store this information in cookies & check the current stage of user & take action accordingly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM