The session cookies are being accessed by all instances of the same browser in the same machine, and therefore getting confused. If you need to test both roles in the same machine, you have 2 options: * Log off from one role before logging on to another role. In the logoff page, make sure you kill all the session variables associated with the role. * Use a different browser for each role, eg. IE & Netscape.
-- Regards: Ayudh +--------------------------------------------------------------+ | Turn on your Revenue Stream... | | Bolt on a Virtual Cash Register to your e-commerce site now. | | VeriPay from Xilo Online: http://www.xilo.com | +--------------------------------------------------------------+ Pat Branley wrote: > > Hi > > Im developing a system where the same pages are being viewed by two > different sets of users. Ie. internal sales & vendors. > > There are certain aspects of each page that the internal sales staff need to > see that the vendors should not be able to see. However if I open both sites > up on the same machine the session vars seem to interfere and session vars > set in one view are accessible via the other view. Im assuming this has > something to do with cookies, but im not sure how to fix it. > Is there a way I can somehow stop these two applications intefering ? > > this is how my pages work. > > -------------- DSP_STUFF.CFM ------------------ > <cfif session.role eq "sales" > > <!--- show stuff vendors should be able to see ---> > </cfif> > > <!--- show common stuff below ----> > ----------------------------------------------------- > > each set of users login via separate pages. ie. > > -------- vendors Site ------- > > wwwroot\vendors\Application.cfm - this has the usual redirect & stuff if > they are not validated > <CFAPPLICATION NAME="vendors" > CLIENTMANAGEMENT="Yes" > SESSIONMANAGEMENT="Yes" > SETCLIENTCOOKIES="Yes" > CLIENTSTORAGE="CFSESSIONS" > SESSIONTIMEOUT=#CreateTimeSpan(0, 0, 15, 0)#> > wwwroot\vendors\login.cfm > wwwroot\vendors\default.cfm - standard layout with cfinclude to common logic > ie. dsp_stuff.cfm > > -------- Sales Site ------- > > wwwroot\sales\Application.cfm - this has the usual redirect & stuff if they > are not validated > <CFAPPLICATION NAME="sales" > CLIENTMANAGEMENT="Yes" > SESSIONMANAGEMENT="Yes" > SETCLIENTCOOKIES="Yes" > CLIENTSTORAGE="CFSESSIONS" > SESSIONTIMEOUT=#CreateTimeSpan(0, 0, 15, 0)#> > wwwroot\vendors\default.cfm - standard layout with cfinclude to common > logic ie. dsp_stuff.cfm > > the common stuff........ > > wwwroot\common\dsp_stuff.cfm > wwwroot\common\act_edit_stuff.cfm > etc. etc. > > p.s. They are acutally running under the same site in IIS. > > Any help would be great. > > Patrick Branley > Systems Engineer > E-BisPrint Pty. Ltd. > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
