Re: SessionID -> UserId Insert and View



Thanks for the reply, but I'm not sure what to do with this.
Where do I put this string?

I'm coding in VB ASP.NET.

Thanks.
"Peter Bromberg [C# MVP]" <pbromberg@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:1737C9B1-F82B-4C5B-850D-5CCFBA78625F@xxxxxxxxxxxxxxxx
It sounds like you just want to store the UserID in a Session variable,
e.g.
Session["userId"]=UserID;


--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com



"Jim" wrote:

Using either EW or VSE2008, I want to have a GridView that will:
- Insert the logged in user's UserId from either the User table or the
membership table when the user inserts a record.
- When the user views the GridView, only their records are shown. I
don't
want to use a query string that uses the UserID for securtiy resons, so
I'm
thinking that I can use a SessionID that is tied to the UserId?

Requests:
1. Insert a record that will automatically insert UserId
2. View reords in GridView that belong to the logged in user with
SessionID

I'm not sure what all I need to do to get the SessionID working? I have
put
"<sessionState mode="InProc" cookieless="false" timeout="20" />" into my
web.config file.
But now what?

Thank you for any help.





.



Relevant Pages

  • RE: Eval Function & Variable
    ... You need to use "replace" to replace the UserID portion of your SubWith with ... where UserID is a variable whose value is set within the function before the ... Public Function ProcessFieldSubstitutions(txtT As String, ... this does work as expected if the value in the SubWith field is ...
    (microsoft.public.access.modulesdaovba)
  • Re: Writing values to a table via VB
    ... Dim strSQL As String ... Dim UserID As String ... where UserID = fOSUserName() is ...
    (microsoft.public.access.formscoding)
  • Re: Writing values to a table via VB
    ... Dim strSQL As String ... Dim UserID As String ... where UserID = fOSUserName() is ...
    (microsoft.public.access.formscoding)
  • Re: Session variable trouble
    ... Also dump userid and sessionid so that you can at least cut down the mixed ... If you have the same userid but distinct sessionIDs this is that the userid ... much of the code has nothing to do with the carrefully hidden problem. ... execute it with different values and observe the results. ...
    (microsoft.public.dotnet.framework.aspnet)
  • SessionID -> UserId Insert and View
    ... - When the user views the GridView, ... want to use a query string that uses the UserID for securtiy resons, ... View reords in GridView that belong to the logged in user with SessionID ... I'm not sure what all I need to do to get the SessionID working? ...
    (microsoft.public.dotnet.framework.aspnet)