English 中文(简体)
在用户记录之后将所有网页转至高频和高频系统?
原标题:Redirect all webpages to HTTPS after user logs in?

I m 利用PHP建造一个混合的https/https网站。 当用户标识(通过https)时,我与用户名称和会议建立了安全 co。 在进行伐木(一旦安装了厨师)之后,我想将所有交通转至网上,因为每页有用户的具体内容。 最初,我设立了网站,只使用https,但在对光线进行搜索之后,似乎只有在需要时才能更好地使用SSL(因为用户没有在http://www.un.org上登记)。 Can 我通过使用PHP/javascript,或者在我的存取档案中增加一些有关 co的指挥? 提前感谢!

最佳回答

假设你召集了几场会议,仅对皇家警察部队开展工作,否则,这只是预设安保(http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure”rel=“nofollow”>session.cookie_secure)。

也可在标识上安装一个(https,而不是https) co。

setcookie( wantshttps , true ,0, / );

And in .htaccess:

RewriteCond %{HTTP_COOKIE} wantshttps=true
RewriteCOnd %{HTTPS} !on
RewriteCOnd %{REQUEST_METHOD} !POST
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L,QSA]

因此,如果你发现 co是真的,但用户中无gged的gged,就会把它伪造或丢弃。

问题回答

只要考虑采用超文本的URLs,那么,相对的URLs就应当这样做,因为它们使用基文地址的规程。 如果需要提及其他地点,你可以使用带有礼宾名称和分号的URLs,如/www.example.com/foo。 http://www.example.com/foo”rel=“nofollow” http://www.example.com/foo或

网址:php.netheader( function>





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签