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 set multiple Login pages

How to set multiple Login pages

Scheduled Pinned Locked Moved ASP.NET
tutorial
15 Posts 6 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.
  • M Muhammad Gouda

    I am developing a multilanguage website. When a user tries to access a secured page without loging in, he/she is redirected to the login page which is defined in the web.config by a unique path. I need to create a seperate login page for each language. So, how to point to them all in the web.config

    Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #2

    Why do you need seperate login pages ? Wouldn't you just want different text to be shown on the one page, based on language ?

    Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

    M 1 Reply Last reply
    0
    • M Muhammad Gouda

      I am developing a multilanguage website. When a user tries to access a secured page without loging in, he/she is redirected to the login page which is defined in the web.config by a unique path. I need to create a seperate login page for each language. So, how to point to them all in the web.config

      Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

      R Offline
      R Offline
      rahul net11
      wrote on last edited by
      #3

      Just check user login in on each and every page. If it contain nothing the redirect user to login page.

      People Laugh on me Because i am Different but i Laugh on them Because they all are same.

      M 1 Reply Last reply
      0
      • C Christian Graus

        Why do you need seperate login pages ? Wouldn't you just want different text to be shown on the one page, based on language ?

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        M Offline
        M Offline
        Muhammad Gouda
        wrote on last edited by
        #4

        Christian Graus wrote:

        ouldn't you just want different text to be shown on the one page, based on language ?

        Yes .. Do you mean to changet the text on the fly ?

        Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

        N L C 3 Replies Last reply
        0
        • M Muhammad Gouda

          Christian Graus wrote:

          ouldn't you just want different text to be shown on the one page, based on language ?

          Yes .. Do you mean to changet the text on the fly ?

          Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #5

          Mohammed Gouda wrote:

          changet the text on the fly ?

          That would be better than having multiple login pages.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          1 Reply Last reply
          0
          • R rahul net11

            Just check user login in on each and every page. If it contain nothing the redirect user to login page.

            People Laugh on me Because i am Different but i Laugh on them Because they all are same.

            M Offline
            M Offline
            Muhammad Gouda
            wrote on last edited by
            #6

            rahul.net11 wrote:

            redirect user to login page

            You did not get me imagin that the login page is in English and the user is not familiar with English, he needs to be redirected to a login page in his own language

            Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

            O 1 Reply Last reply
            0
            • M Muhammad Gouda

              Christian Graus wrote:

              ouldn't you just want different text to be shown on the one page, based on language ?

              Yes .. Do you mean to changet the text on the fly ?

              Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

              L Offline
              L Offline
              l0kke
              wrote on last edited by
              #7

              Try to take a look here, I guess that's what you need: http://msdn.microsoft.com/en-us/library/ms227427(VS.80).aspx[^]

              M 1 Reply Last reply
              0
              • M Muhammad Gouda

                Christian Graus wrote:

                ouldn't you just want different text to be shown on the one page, based on language ?

                Yes .. Do you mean to changet the text on the fly ?

                Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #8

                Yes, that's how I'd do all internationalisation, by having all strings set from resources.

                Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                1 Reply Last reply
                0
                • L l0kke

                  Try to take a look here, I guess that's what you need: http://msdn.microsoft.com/en-us/library/ms227427(VS.80).aspx[^]

                  M Offline
                  M Offline
                  Muhammad Gouda
                  wrote on last edited by
                  #9

                  Thanks :) Very useful article, You made my life easier than before Many many thanks to you :rose: and to the greate CP :rose:

                  Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

                  L 1 Reply Last reply
                  0
                  • M Muhammad Gouda

                    rahul.net11 wrote:

                    redirect user to login page

                    You did not get me imagin that the login page is in English and the user is not familiar with English, he needs to be redirected to a login page in his own language

                    Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

                    O Offline
                    O Offline
                    Oakman
                    wrote on last edited by
                    #10

                    Just as a matter of interest, how do you know what the user's native language is, if he hasn't logged in?

                    Jon Smith & Wesson: The original point and click interface

                    M 1 Reply Last reply
                    0
                    • O Oakman

                      Just as a matter of interest, how do you know what the user's native language is, if he hasn't logged in?

                      Jon Smith & Wesson: The original point and click interface

                      M Offline
                      M Offline
                      Muhammad Gouda
                      wrote on last edited by
                      #11

                      Oakman wrote:

                      how do you know what the user's native language is,

                      I need not to know his native language Simply, I will ask him to choose his language before logging in

                      Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

                      O 1 Reply Last reply
                      0
                      • M Muhammad Gouda

                        Oakman wrote:

                        how do you know what the user's native language is,

                        I need not to know his native language Simply, I will ask him to choose his language before logging in

                        Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

                        O Offline
                        O Offline
                        Oakman
                        wrote on last edited by
                        #12

                        Mohammed Gouda wrote:

                        Simply, I will ask him to choose his language before logging in

                        So every time I visited your site, I would have to tell you what language I wanted to use before I logged in? That is really bad user experience.

                        Jon Smith & Wesson: The original point and click interface

                        M 1 Reply Last reply
                        0
                        • O Oakman

                          Mohammed Gouda wrote:

                          Simply, I will ask him to choose his language before logging in

                          So every time I visited your site, I would have to tell you what language I wanted to use before I logged in? That is really bad user experience.

                          Jon Smith & Wesson: The original point and click interface

                          M Offline
                          M Offline
                          Muhammad Gouda
                          wrote on last edited by
                          #13

                          Oakman wrote:

                          So every time I visited your site, I would have to tell you what language I wanted to use before I logged in

                          Oh! thanks for the hint I can send you a cookie that holds your selection Have you better idea, please let me know

                          Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

                          L 1 Reply Last reply
                          0
                          • M Muhammad Gouda

                            Thanks :) Very useful article, You made my life easier than before Many many thanks to you :rose: and to the greate CP :rose:

                            Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

                            L Offline
                            L Offline
                            l0kke
                            wrote on last edited by
                            #14

                            You are quite welcome :)

                            1 Reply Last reply
                            0
                            • M Muhammad Gouda

                              Oakman wrote:

                              So every time I visited your site, I would have to tell you what language I wanted to use before I logged in

                              Oh! thanks for the hint I can send you a cookie that holds your selection Have you better idea, please let me know

                              Mohammed Gouda foreach(Minute m in MyLife) myExperience++;

                              L Offline
                              L Offline
                              l0kke
                              wrote on last edited by
                              #15

                              Maybe Page.Request.UserLanguages array can help you to determine what is user's preferred language. But always keep an option for a user to change the setting and store it in a cookie.

                              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