﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Unbranded cost and cookies</title><link>http://www.aspplayground.net/forum/</link><description /><copyright>(c) ASP Playground Support Forum</copyright><ttl>30</ttl><item><title> RE: Unbranded cost and cookies (Samuel)</title><description>  1) Please contact &lt;a href="mailto:info@aspplayground.net"&gt;info@aspplayground.net&lt;/a&gt; for information &lt;br&gt;   &lt;br&gt;  2) Weit should be very easy, because we use the following functions to manage session: &lt;br&gt;   &lt;br&gt;  &lt;pre class="prettyprint"&gt;sub sessAssign (sessName,sessValue)
 	session(dbName&amp;sessName) = sessValue
 end sub
 
 sub sessRemove (sessName)
 	session.contents.remove(dbName&amp;sessName)
 end sub
 
 sub sessSetTimeout (timeout)
 	session.timeout = timeout
 end sub
 
 function sessRead (sessName)
 	sessRead = session(dbName&amp;sessName)
 end function
 
 function sessReadID
 	sessReadID = session.sessionID
 end function
 
 function sessReadTimeout
 	sessReadTimeout = session.timeout
 end function
 
 sub sessAbandon
 	call sessRemove("MemInfo")
 	Dim cookieKey
 	for each cookieKey in request.cookies
 		if instr(cookieKey,dbName)&amp;gt;0 then _
 			response.cookies(cookieKey).expires = date-1000
 	next
 end sub
 &lt;/pre&gt;What I mean is that you only need to change the session code in one location. However, there is one implication for using cookies: you will need to find a way to encrypt the data because the cookies will be travelling back and forth on each request. &lt;br&gt;   &lt;br&gt;  Let me know if you have other questions </description><link>http://www.aspplayground.net/forum/fb.ashx?m=383392</link><pubDate>Mon, 14 Jun 2004 21:43:25 GMT</pubDate></item><item><title> Unbranded cost and cookies (Guest)</title><description>  Two things: &lt;br&gt;  1) How much does the unbranded version cost? &lt;br&gt;  2) How hard would it be to modify your code (after I bought it) to run a sessionless (our shop doesn't allow sessions) cookie-based version of your code? &lt;br&gt;  Thanks! &lt;img src="http://www.aspplayground.net/forum/upfiles/smiley/s1.gif" alt="" /&gt; </description><link>http://www.aspplayground.net/forum/fb.ashx?m=383381</link><pubDate>Mon, 14 Jun 2004 16:08:27 GMT</pubDate></item></channel></rss>
