Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Login Processing problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Login Processing problem

    Hello,

    I have created a application on a VPS and have developed to the stage of Testing.

    Up to now have run the Web Application using developer, decided to move to Application server to handle the web site.

    Installed the webserver, and license. All seems to work okay, except the Variable on my login processing page are not working.

    E.G.

    I can login and acces the main menu page. But vairiables on the Login page are not being created.

    Sample of the Login processin page is below, is there anything I'm missing?
    <%a5 'dim the variables
    Dim pUser as P'-- Used to get info about logged in user (options are guid, email, ulink, etc)

    Dim vGUID as c
    Dim vUlink as c
    Dim Session.__Protected__IsAdministrator as l = .f.
    Dim Session.Facility as N = 0
    Dim Session.Firstname as c
    Dim Session.Lastname as C
    Dim Session.Username as c
    Dim Session.FacilityName as c
    Dim Session.ResidentID as N
    Dim Session.ResidnetName as C
    Dim Session.SecurityLevel as C
    Dim Session.CIMUserID as C 'Used to Grab the Unique USerID for each Login
    Dim session.FacilityType as c = " " 'Capture the Facility type
    Dim Session.UserAdmin as l ' To capture if usre has Admin access.


    'GET INFORMATION ABOUT THE CURRENTLY LOGGED IN USER
    a5ws_logged_in_user_values(pUser,request,session)
    group = a5ws_get_user_assignments(pUser.userid)
    vGUID = a5ws_get_guid_from_user(pUser.userid) 'GUID is the user Unique User ID for the record stored in Login Security settings.
    vUlink = a5ws_get_ulink_from_guid(vGUID) 'ULINK is the user ID value

    Session.SecurityLevel = group
    Session.CIMUserID = vUlink


    'Open the named concetion
    Dim cn as SQL::Connection
    Dim flagResult as l
    flagResult = cn.open("::Name::CIMSQLCONNECTION")
    cn.PortableSQLEnabled = .t.
    dim sqlstatement as c

    ' Get logged in users state , we will use this for filtering grids, lists etc.
    table = "Employee"
    filter = "EmployeID = '" + vUlink +"'"
    result = "FacilityID"
    result2 = "Lastname"
    result3 = "Firstname"
    Result6 = "Admin"
    Session.Facility = sql_lookup(cn, table, filter, result)
    Session.Lastname = sql_lookup(cn, table, filter, result2)
    Session.Firstname = sql_lookup(cn, table, filter, result3)
    Session.UserAdmin = sql_lookup(cn, table, filter, result6)

    'Concatenate both sesison to get Username.
    Session.Username = Session.Firstname + ", " + Session.Lastname

    ' Get logged in FaciltiyID , we will use this for getting facility name, and maybe filtering lists etc.
    Factable = "Facility"
    filterFac = "FacilityID = '"+ Session.Facility+"'"
    result4 = "Fname"
    Result5 = "Type"

    Session.FacilityName = sql_lookup(cn, Factable, filterFac, result4)
    session.FacilityType = sql_lookup(cn, Factable, filterFac, result5)


    'Now Close the Connection
    cn.Close()


    response.redirect("MainMenu.a5w")


    %>

    #2
    Re: Login Processing problem

    Can you zip and post your login.a5w page?

    Comment


      #3
      Re: Login Processing problem

      You have to make sure your script only fires after they login. Jf the salcript is not isolated within an IF variable_exists ("submitbtnname") then it will fire before they login.

      Also, your syntax is more v10 than v12.
      Steve Wood
      See my profile on IADN

      Comment


        #4
        Re: Login Processing problem

        Hello Steve,

        Thanks for your reply but, I don't understand your comments??

        Yes the script may be old style, I have been learning to build using Alpha training Videos v10. Is there a v12 login processing video tute? I haven't come across one??

        I have used the suggestions in videos to try and learn how to get a site up and running. It is working in V12, with the developer no problems. Except not with the application server??

        I sorry, but I don't fully understand your comments, re. Jf the salcript is not isolated within an IF variable_exists ("submitbtnname").

        Could you post me an example?

        Should login processing be done differently in version v12???

        I know v12 is focused towards mobile apps, but I am only using for Web application at present..

        Comment


          #5
          Re: Login Processing problem

          Hello David,

          I have zipped and attached the page. After recent post I guess I'm missing some syntax, but still not sure what it is..

          I will keep researching?loginprocessing.zip

          thanks.

          Comment


            #6
            Re: Login Processing problem

            I see now, this is a page that you are hitting after the user logs in, not on the same page as the login dialog itself.

            Now, are you sure this post-login page is being hit at all? Maybe place code such as save_to_file("got here","c:\test.txt") on that page to kick out a text file as confirmation it got to that page. I personally set these variables on the same page as the login dialog so there is no confusion.

            If you do that, they you need to place all of your code in between:

            if eval_valid("submitbutton")
            if eval_valid("userid")
            ...your code...
            end if
            end if

            that means the code will ONLY fire after they click the login button.
            Steve Wood
            See my profile on IADN

            Comment


              #7
              Re: Login Processing problem

              Hello Steve,

              Thanks for your reply,

              I am sure the login processing page is being hit, when using the developeer as the variables are created... Just not happening when I use the Application server???
              My Security setting are to send the sucessfull login user to the processing page. Having said that, I would like to try your suggestions to put the script on the login page. as you suggested to do..

              Not sure where this goes? Do you mean this code goes on the HTML page , or is it added to the Component properties??

              I have looked at both and cant find the code??? Or where to place it???
              Cant find
              if eval_valid("submitbutton")
              if eval_valid("userid")
              ...your code...
              end if
              end if


              anywhere on the webpage or in the login component.

              Sorry if I am not understanding, just need a little bit more help to get it right.

              Comment

              Working...
              X