<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013931" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013931</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/shopping-cart-asp#comment-1081366</link>
    <description> &lt;p&gt;Secured areas are a great use for sessions objects.&lt;/p&gt;
&lt;p&gt;User logs in, you store at least UserName, UserID, and AuthLevel. And maybe a UserGroup.&lt;/p&gt;
&lt;p&gt;On EVERY page in the secured area you will need to include a page, I&#039;ll call it AuthLevel1.asp.  In this file, you will check to see if the session exists. If the session is null or empty, kick them out, perhaps to a login screen.  If the session is there, check to see if the AuthLevel is high enough for this area.  If not kick them out (Response.Redirect()) &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;Some areas may lock out everyone but certain people. If this is the case, include a different file, such as AuthGroup1.asp.  In this file, you will check the UserName or UserGroup to see if they are authorized for that area.&lt;/p&gt;
&lt;p&gt;When the user logs out. Remember to kill the session (Session.Abandon). This will allow someone else to login using the same browser.&lt;/p&gt;
 </description>
     <pubDate>Wed, 18 Apr 2001 17:52:55 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1081366 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Thanks</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/shopping-cart-asp#comment-1081334</link>
    <description> &lt;p&gt;Makes sense, I suppose.&lt;/p&gt;
&lt;p&gt;What then, if not shopping cart, would be a good use for session variable in on online shop. &lt;/p&gt;
&lt;p&gt;I&#039;m doing this as a course project and I need to get some practice working with the session object.&lt;/p&gt;
 </description>
     <pubDate>Wed, 18 Apr 2001 10:21:27 +0000</pubDate>
 <dc:creator>akohl</dc:creator>
 <guid isPermaLink="false">comment 1081334 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/shopping-cart-asp#comment-1081294</link>
    <description> &lt;p&gt;Sorry for the delayed answer...&lt;/p&gt;
&lt;p&gt;&lt;em&gt;How does one store shopping cart information in a session variable?&lt;/em&gt;&lt;br /&gt;
quick answer: I wouldn&#039;t&lt;/p&gt;
&lt;p&gt;longer answer:&lt;br /&gt;
Only need one sessoin variable: UserID&lt;br /&gt;
Then keep all the shopping cart info in a DB table.  It&#039;s a lot easier to keep track of all your vars if you only have one &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;.  Also, you can allow the user to window shop now, and buy latter. The next time they log into your site, you grab their UserID, and can query for any item in their shopping cart. Make sense?&lt;/p&gt;
&lt;p&gt;Good Luck,&lt;/p&gt;
 </description>
     <pubDate>Wed, 18 Apr 2001 02:53:34 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1081294 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
