php ci架構中header()頁面跳轉問題

來源:互聯網
上載者:User
關鍵字 php
php

使用header函數跳轉的時候可以找到指定的url 也能找到頁面,但是頁面就是不跳轉,url不變,這是怎麼回事
Request URL:http://localhost/login
Request Method:POST
Status Code:302
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-CN,zh;q=0.8
Connection:keep-alive
Content-Length:67
Content-Type:application/x-www-form-urlencoded
Cookie:PHPSESSID=2k3ap23pdn68ecls5a1kgb8431
Host:localhost
Origin:http://localhost
Referer:http://localhost/
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
X-Requested-With:XMLHttpRequest
Form Dataview sourceview URL encoded
username:123
password:e10adc3949ba59abbe56e057f20f883e
role:student
這個是開始的原頁面

Request URL:http://localhost/student/index
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-CN,zh;q=0.8
Connection:keep-alive
Cookie:PHPSESSID=2k3ap23pdn68ecls5a1kgb8431
Host:localhost
Referer:http://localhost/
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
X-Requested-With:XMLHttpRequest
Response Headersview source
Connection:Keep-Alive
Content-Length:856
Content-Type:text/html
Date:Mon, 18 Nov 2013 14:22:30 GMT
Keep-Alive:timeout=5, max=99
Server:Apache/2.4.4 (Win32) PHP/5.4.16
X-Powered-By:PHP/5.4.16
這個是要跳轉到的頁面

  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.