|
| |
Writting a cookie, then on another page reading that value and posting it to a databa
View related threads:
(in this forum
| in all forums)
|
Logged in as: Guest
|
|
|
TimC
Posts: 199 From: Greenville SC (& or) Monterrey Mexico Status: offline
|
Writting a cookie, then on another page reading that va... - 5/13/2001 22:58:00
Was using a more primitive password method to go to a specific users page, each user had to have their own unique page which contained a form that posted to an access database. In this form was blind value pairs which identified the user so they did not have to retype their user info each time they submitted another record. Then I stumbled into the noble writtings of Sir Spooky of Borg and for a most humble fee purchased an incredible Utility (Spooky Login) which no man could even begin to code for the lowly price he charges. But now the quandry - why can't i use the same session cookies (that allows my users access to certain pages) to be posted to the data base with each submission. If there is a way to do this then I would only have to write one page and each users identity would be posted according to the cookies comming back from their machine. Only other drawback - I have been reading a lot about asp/threads and the bottlenecks that they can cause - would this be one of those bottlenecks? [http://www.learnasp.com/advice/dbsessionapp.asp} IS there a simple solution or is this something more complex than an asp beginner wants to tackle. To the person that needed Spooky's comb help yourself, I'm in need of his whole darn shaving kit and maybe the toothbrush too[grin]
|
|
|
|
Spooky
Posts: 26598 Joined: 11/11/1998 From: Middle Earth Status: offline
|
RE: Writting a cookie, then on another page reading tha... - 5/14/2001 20:54:00
Hi Tim  Well, where to start..... I guess question 1, is how are you adding it to the database?Normally you will find that you can add these variables (session or cookie) as you normally do any variable. The exception is the DRW, which only accepts cookies and not sessions. As for session variables being resource hogs, there is actual data to prove this, but the general consensus is that used sparsely, you wont strike a problem. I tend to quote this : http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=75 when discussing sessions. But only because he agrees with me  ------------------ §þððk¥ "I am Spooky of Borg. Prepare to be assimilated, babycakes!" Subscribe to OutFront News Database / DRW Q & A The Spooky Login!
|
|
|
|
TimC
Posts: 199 From: Greenville SC (& or) Monterrey Mexico Status: offline
|
RE: Writting a cookie, then on another page reading tha... - 5/14/2001 15:07:00
Lets start with the simple version and use Front Page Forms Web-Bots, As to the "how", I use a submission form to post to a table in my database, using the addditional code as shown<input type="hidden" name="userName" value="John Doe"> to modify it - this is probably over simplified but i need to find the exact method to do the following <input type="hidden" name="userName" value" = <%=Session("Username")%> Not sure if the above syntax is correct or if i need to declare a variable like so: dim uname uname = <%=Session("Username")%> then do this in my form; <input type="hidden" name="userName" value" = (uname) Thanks for any help you can provide [Got the toothbrush, still after the shaving kit though :-) ]
|
|
|
|
Spooky
Posts: 26598 Joined: 11/11/1998 From: Middle Earth Status: offline
|
RE: Writting a cookie, then on another page reading tha... - 5/14/2001 16:27:00
Thats almost exactly the format required :<input type="hidden" name="userName" value="<%=Session("Username")%>"> Ive run out of toiletries and am getting hairier by the day. And I wouldnt stand too close...... ------------------ §þððk¥ "I am Spooky of Borg. Prepare to be assimilated, babycakes!" Subscribe to OutFront News Database / DRW Q & A The Spooky Login!
|
|
|
|
TimC
Posts: 199 From: Greenville SC (& or) Monterrey Mexico Status: offline
|
RE: Writting a cookie, then on another page reading tha... - 5/15/2001 20:15:00
Thank You to much Sir Spooky of Borg - humble grasshopper stands in awe of great ASP Master - and fear not grasshopper fell through a hole in the ice for annual spring bath - your shaving kit and toothbrush are winging their way home through space as I type. [GRIN]
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|