473,804 Members | 4,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

return session details

Does any one have an asp page they can share that returns current session
details, cookies etc.

I can't get session arrays to return in a page.
Jul 19 '05 #1
1 1892
"Don Grover" <sp******@assof t.com.au> wrote in message
news:ub******** ******@TK2MSFTN GP09.phx.gbl...
Does any one have an asp page they can share that returns current session details, cookies etc.

I can't get session arrays to return in a page.

<%
Function DebugDump()
Dim item
Dim o
o=""
o=o & "<table>"
' o=o & "<tr><th colspan='2'>Att ributes</th></tr>"
' For Each item in attributes
' o=o & "<tr><td>" & item & "</td><td>" & attributes(item ) &
"</td></tr>"
' Next
o=o & "<tr><th colspan='2'>Que ryString</th></tr>"
For Each item in Request.QuerySt ring
o=o & "<tr><td>" & item & "</td><td>" & Request.QuerySt ring(item) &
"</td></tr>"
Next
o=o & "<tr><th colspan='2'>For m</th></tr>"
For Each item in Request.Form
o=o & "<tr><td>" & item & "</td><td>" & Request.Form(it em) &
"</td></tr>"
Next
o=o & "<tr><th colspan='2'>Coo kies</th></tr>"
For Each item in Request.Cookies
o=o & "<tr><td>" & item & "</td><td>" & Request.Cookies (item) &
"</td></tr>"
Next
o=o & "<tr><th colspan='2'>Cli ent Certificate</th></tr>"
For Each item in Request.ClientC ertificate
o=o & "<tr><td>" & item & "</td><td>" &
Request.ClientC ertificate(item ) & "</td></tr>"
Next
o=o & "<tr><th colspan='2'>Ser verVariables</th></tr>"
For Each item in Request.ServerV ariables
o=o & "<tr><td>" & item & "</td><td>" & Request.ServerV ariables(item)
& "</td></tr>"
Next
o=o & "<tr><th colspan='2'>Ses sion</th></tr>"
For Each item in Session.Content s
If IsObject(Sessio n.Contents(item )) Then
o=o & "<tr><td>" & item & "</td><td>[Object]</td></tr>"
Else If IsArray(Session .Contents(item) ) Then
o=o & "<tr><td>" & item & ":</td><td>[Array]</td></tr>"
Dim ArrayItem
For Each ArrayItem In Session.Content s(item)
o=o & "<tr><td>&nbsp; </td></td><td>" & ArrayItem & "</td></tr>"
Next
Else
o=o & "<tr><td>" & item & "</td><td>" & Session.Content s(item) &
"</td></tr>"
End If
End If
Next
o=o & "</table>"
DebugDump=o
End Function
%>
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1734
by: Bob Bedford | last post by:
I've to create link to a new page using session variables. I've about 20 variables already set, so this is OK. But now I've 50 links to various articles on my page. Those links are created dynamically using a mysql table, so I take the ArticleID. www.mysite.com/detail.php?ID=2 www.mysite.com/detail.php?ID=4 www.mysite.com/detail.php?ID=5 www.mysite.com/detail.php?ID=7
2
6167
by: Joe Molloy | last post by:
Hi, This isn't a mission critical question but I thought I'dl throw it out there for your feedback as it's a bit curious. I have developed a shopping cart for an application I'm working on which is loosely based on the e-commerce example in the quickstarts tutorial. In the cart display I have provided functionality so that when a user clicks on a product name a popup is opened with the full product details displayed.
8
8426
by: karahan celikel | last post by:
I realized that when SqlServer mode is used for session management Session_End event is not fired in global.asax. What can I do if I want to do something when a user's session end? Thanks
13
2869
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i visit again .... null ... again .... it works ..... again ... it works ... again ..... null....... and so on and on .... it does randomly work or not.... what is this effect?
8
2722
by: BigJohnson | last post by:
We're using ASPUpload as a tool to upload files to our server and save the details to SQLServer. However, I have an application where I need to return the pkID of the just saved file. I'm assuming that I could use the @@Identity command but cannot get this to function. Has anyone used this command with ASPUpload with an success, or any other methods that could be used? Thanks.
10
2180
by: Mark Rae | last post by:
Hi, This relates to the previous thread "Disappearing Sessions", but is a bit more generic so I thought I'd start a new thread. This one relates to the storing of objects in Session once only to prevent the system having to constantly query the database for the same information. I'm currently upgrading a v1.1 app to v2 (that's all I seem to do these days!), and it contains a class called CUser which holds details of the currently...
3
4108
by: ricardo.sobral.santos | last post by:
Hi there, I cannot store an arraylist in a session. I have read some posts and still found no solution. I am sure it might be something simple, but since I have been around it for quite sometime I ask for your advice. Here is my page load. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
3
5007
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my web.config: <authentication mode="Forms"> <forms name=".ReMaCRM" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx" cookieless="AutoDetect" domain="" timeout="10" protection="All" /> </authentication>
4
4392
by: raaman rai | last post by:
Pls see the code below, where i wanted to select all the records from my table where the submdate (submission date) is greater or equal to today's date. Whereas i have two or three records in my table which has this date greater than today but still then i get only one record displayed. I dont find any problem anywhere but still then i dont get the result displayed as i wanted. Pls help me where i have the problem. <?php global $database;...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.