Deprecated: Assigning the return value of new by reference is deprecated in /home/tryangle/public_html/blog/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /home/tryangle/public_html/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/tryangle/public_html/blog/wp-includes/theme.php on line 507

Deprecated: Assigning the return value of new by reference is deprecated in /home/tryangle/public_html/blog/wp-content/plugins/codesnippet/codesnippet.php on line 248
Tryangled Dev » Blog Archive » If using “cookieless”, how can I redirect from a HTTP page to an HTTPS page?

If using “cookieless”, how can I redirect from a HTTP page to an HTTPS page?

String originalUrl = “/try/subflo/tryangled.aspx”;
String modifiedUrl = “https://localhost” + Response.ApplyAppPathModifier(originalUrl);
Response.Redirect(modifiedUrl);

NOTE: Fully qualified URLs in the response.redirect, server.transfer, and FORM action
tags cannot be used with cookiless sessions.

Posted by Mahesh ( Tryangled )

Leave a Reply

You must be logged in to post a comment.