http file access and php sessions

后端 未结 3 348
一生所求
一生所求 2021-01-13 18:05

If a site has php session\'s in place to enforce authentication/authorization to pages on the site which are implemented in php, how does the same logic enforce access to ce

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-13 18:35

    A couple answers:

    1) make your php sessions use HTTP authentication. Then you can use a .htaccess file to control file access in directories

    2) Use mod_rewrite to redirect all requests to a "front controller". Let the front controller manage whether access is allowed, denied, or forwarded to a different controller module for further processing.

提交回复
热议问题