Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to Store Session Variable(UserName) in a table with MySQL....

How to Store Session Variable(UserName) in a table with MySQL....

Scheduled Pinned Locked Moved ASP.NET
mysqltutorialannouncement
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    spalanivel
    wrote on last edited by
    #1

    Hi, I want to save the session UserName in a table using mysql. I have the history of my base table(auction) update, delete, create information will get stored in a backup table(auction_log). I want to save username(who currently loged in and modifies the record in a table) in too the auction_log table. reg, Subbu

    N V R 3 Replies Last reply
    0
    • S spalanivel

      Hi, I want to save the session UserName in a table using mysql. I have the history of my base table(auction) update, delete, create information will get stored in a backup table(auction_log). I want to save username(who currently loged in and modifies the record in a table) in too the auction_log table. reg, Subbu

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      And what part are you having difficulties with?


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • S spalanivel

        Hi, I want to save the session UserName in a table using mysql. I have the history of my base table(auction) update, delete, create information will get stored in a backup table(auction_log). I want to save username(who currently loged in and modifies the record in a table) in too the auction_log table. reg, Subbu

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        Create a connection to mysql db and run an insert or update on the table.

        Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

        1 Reply Last reply
        0
        • S spalanivel

          Hi, I want to save the session UserName in a table using mysql. I have the history of my base table(auction) update, delete, create information will get stored in a backup table(auction_log). I want to save username(who currently loged in and modifies the record in a table) in too the auction_log table. reg, Subbu

          R Offline
          R Offline
          R Giskard Reventlov
          wrote on last edited by
          #4

          Pass the username as a parameter to a stored procedure and insert the new record as: insert into auction_log (field1, field2, ..., UserName) values (@Field1, @Field2, ..., @UserName) or similar should do it. It's been a while since I used MySql but I think that should work.

          me, me, me

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups