Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Get Sessionid and write to a database table

$
0
0

I start a sessionId when a user points their browser to www.GoLiveFitness.com. You can see the session id in the following url: http://golivefitness.com/(S(e3mrd4s0wg3zehwlcgsyawhg))/default.aspx. What I would like to do is assign the sessionid to a hidded field so that I can create an sqldatasource and perform an insert therefore inserting the sessionid value to a database. I make the assumption that since sessions is turned on in webconfig and we can see the sessionid in the url then there must be a way to write this value to a custom table. When I try to create the sqldatasource against the stored procedure I created to do the insert I the IDE in Visual Studio ask for the Session field in the web form. I know there other ways of doing this in sqlserver but this is absolutely the best way for me to go about it. If you can help please provide code samples. I would like to insert the sessionid along with another value to a sqlserver database table at the same time.

I would need a VB.Net SOlution


Viewing all articles
Browse latest Browse all 23244

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>