<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042274" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042274</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Thank you all very much, I</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/sending-user-back-page-they-requested-after-login#comment-1235028</link>
    <description> &lt;p&gt;Thank you all very much, I will get to work and implement it. Will let you know what I did. Got to do some darn Uni work first though &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Peace.&lt;/p&gt;
&lt;p&gt;Relentless.&lt;/p&gt;
 </description>
     <pubDate>Sun, 09 Nov 2008 21:40:15 +0000</pubDate>
 <dc:creator>IO.Relentless</dc:creator>
 <guid isPermaLink="false">comment 1235028 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I would not recommend not</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/sending-user-back-page-they-requested-after-login#comment-1235027</link>
    <description> &lt;blockquote&gt;&lt;p&gt;I would &lt;strong&gt;not&lt;/strong&gt; recommend &lt;strong&gt;not&lt;/strong&gt; using the referrer.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;While your intended meaning is clear, your syntax encourages using referrer. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;[&lt;em&gt;grammar police&lt;/em&gt;]&lt;/p&gt;
 </description>
     <pubDate>Sun, 09 Nov 2008 21:24:42 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1235027 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I would not recommend not</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/sending-user-back-page-they-requested-after-login#comment-1235023</link>
    <description> &lt;p&gt;I would not recommend not using the referrer.  Those can be spoofed, and browsers can even be configured to not send them.  I use matt&#039;s method on all user-login sites I do.&lt;/p&gt;
 </description>
     <pubDate>Sun, 09 Nov 2008 20:46:18 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1235023 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>If the login page is also</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/sending-user-back-page-they-requested-after-login#comment-1235014</link>
    <description> &lt;p&gt;If the login page is also the processing page, you could redirect to the referrer page&lt;/p&gt;
&lt;p&gt;PHP: &lt;a href=&quot;http://www.julian-bez.de/blog/2005/07/14/using-http_referer-in-php/&quot;&gt;HTTP_REFERER&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;JavaScript: &lt;a href=&quot;http://www.w3schools.com/HTMLDOM/prop_doc_referrer.asp&quot;&gt;document.referrer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[&lt;em&gt;note that REFERER in PHP has three &quot;R&quot;s while referrer in JS has four&lt;/em&gt;]&lt;/p&gt;
 </description>
     <pubDate>Sun, 09 Nov 2008 17:37:06 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1235014 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>The way I would do it is</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/sending-user-back-page-they-requested-after-login#comment-1235012</link>
    <description> &lt;p&gt;The way I would do it is save a session of the URL they accessed (and then redirect them to the login page). Then, once they login, check if that session is set, and redirect them to the page.&lt;/p&gt;
&lt;p&gt;So one some internal page, you would have something like:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if user is not logged in, then&lt;br /&gt;&amp;nbsp;&amp;nbsp; save current URL in session variable &lt;br /&gt;&amp;nbsp;&amp;nbsp; redirect the user to the login page&lt;br /&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp; show the page&lt;br /&gt;endif&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
And on the login page you would have something like:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if the login form was submitted, then&lt;br /&gt;&amp;nbsp; if the user&amp;#039;s credentials are good, then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if the session is set, then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; redirect user to URL saved in session&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif&lt;br /&gt;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; send the user to the regular page&lt;br /&gt;&amp;nbsp;&amp;nbsp; endif&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; send the user back to the login page&lt;br /&gt;endif&lt;br /&gt;&amp;nbsp; &lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 09 Nov 2008 17:02:00 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1235012 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
