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. Redirect with querystring

Redirect with querystring

Scheduled Pinned Locked Moved ASP.NET
comsecurityquestion
5 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.
  • D Offline
    D Offline
    Dot Net Dev
    wrote on last edited by
    #1

    Hi, I have two sites and I want to login from one to another. I have simply used Response.Redirect("http://www.site1.com?username=abc&password=123"). I have encrypted username and password for security. I want only to confirm is this approach good or not? Thanks

    S P 2 Replies Last reply
    0
    • D Dot Net Dev

      Hi, I have two sites and I want to login from one to another. I have simply used Response.Redirect("http://www.site1.com?username=abc&password=123"). I have encrypted username and password for security. I want only to confirm is this approach good or not? Thanks

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Dot-Net-Dev wrote:

      I want only to confirm is this approach good or not?

      No, not at all!

      Dot-Net-Dev wrote:

      I have encrypted username and password for security.

      Username/password or any sensitive information should never be passed in querystring even if encrypted!

      D 1 Reply Last reply
      0
      • D Dot Net Dev

        Hi, I have two sites and I want to login from one to another. I have simply used Response.Redirect("http://www.site1.com?username=abc&password=123"). I have encrypted username and password for security. I want only to confirm is this approach good or not? Thanks

        P Offline
        P Offline
        Punit Belani
        wrote on last edited by
        #3

        yes, @Sandeep Mewara is true. there are many ways for decrypt your encryption. never use sensitive data in querystring.

        1 Reply Last reply
        0
        • S Sandeep Mewara

          Dot-Net-Dev wrote:

          I want only to confirm is this approach good or not?

          No, not at all!

          Dot-Net-Dev wrote:

          I have encrypted username and password for security.

          Username/password or any sensitive information should never be passed in querystring even if encrypted!

          D Offline
          D Offline
          Dot Net Dev
          wrote on last edited by
          #4

          Then what to use?

          J 1 Reply Last reply
          0
          • D Dot Net Dev

            Then what to use?

            J Offline
            J Offline
            JHizzle
            wrote on last edited by
            #5

            Set an authentication cookie. There's more than a few examples out there but here's a starting point for what I think you want: http://msdn.microsoft.com/en-us/library/9wff0kyh.aspx Never ever use querystrings for this sort of thing. You're exposing an entry point, encrypted or no, for someone savvy enough to mess with.

            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