...

View Full Version : sessions.



Baleric
04-25-2006, 09:38 AM
<%
dim i
dim j
j=Session.Contents.Count
Response.Write("Session variables: " & j)
For i=1 to j
Response.Write(Session.Contents(i) & "<br />")
Next
%>

im in the process of making a shopping cart
and i am using this code to list all sessions, but it is showing the sessions
that i am using to list users information.
(when a user logs in it creates a session to let my pages know they are
authenticated)

Is there a way i can exclude certain session names?

thanks in advance.

-baleric

degsy
04-25-2006, 04:40 PM
For Each Item In Session.Contents
Response.Write Item & ": " & Session.Contents(Item) & "<br>"
Next

Baleric
04-27-2006, 09:01 AM
this code still shows all my sessions...
is there a way i can exclude certain session names...

Archangel
04-28-2006, 05:48 PM
If you know what ones you want to exlude you could use an if statement...

For Each Item In Session.Contents
If Session.Contents(Item) <> "Archangel" Then
Response.Write Item & ": " & Session.Contents(Item) & "<br>"
End If
Next



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum