简体   繁体   中英

PHP 403 Forbidden on Redirect

I have a weird one. I have written some code where my script adds something into the database, then after successfully adding it, the page is redirected to the homepage, with some cookies that get set to let the customer know it has been successfully added. Everything was working fine, but then the other day, all of a sudden my client gets a "403 Forbidden - Server configuration does not allow access to this page." error. If you refresh the page however, it loads fine. It only seems to be on the redirect that it happens.

As mentioned, everything seemed to be working fine until a few days ago.

Any ideas? I can supply some code if necessary.

Thanks

I've isolated the problem. I was trying to pass a .... within a string that i was saving and passing through a cookie so the client could quickly redeem a second time on the home page. When I removed that, it wasn't throwing the 403 anymore.

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