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

Session not being set

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

    Session not being set

    I am in the process of moving servers (sticking with Zebrahost they are just moving me to their new datacenter onto newer and better equipment). I have managed to get all necessary files moved to the new servers and am able to access my site through the load balancers IP, however, when I login the session doesn't seem to be created and therefore none of my session variables are working. I've tried messing with the "Session Storage Settings" within the instance settings, but I can't seem to get anything working. Any ideas on what I need to do to get sessions running properly?

    #2
    Re: Session not being set

    So an update on this, if I only have a single instance running then my session variables will work but as soon as I have more than one running my session variables get lost when I refresh the whole page (if I keep the site up and use refresh button within the site that rely on session variables they will still be used even after starting a second instance). Any ideas what would be causing this issue? I have a single IP for all instances they just run on different ports (I believe Zebrahost told me the load balancer handles this).

    Comment


      #3
      Re: Session not being set

      So just another update, after messing with the instance config files I have found that if I assign multiple ones to use port 80 then session variables work as expected. However, I have some buttons that are suppose to export list data into an excel file (using the simple list action in javascript and the advanced javascript export action) and I can see the temp files showing up in the session folders but they aren't downloading, any ideas why?

      Comment


        #4
        Re: Session not being set

        I think each instance of traditional WAS needs a unique cookie name when you are using a load balancer. Open the WAS server console, go to "Advanced" tab and look at the "Cookie Name". Open the XML configuration files that zebrahost setup for you and locate this value and change it to be unique across all instance xml files.

        I believe you will always have some sort of problem when using a load balancer under traditional WAS. I scrapped the load balancer junk when ZH migrated us to new server and I have not heard any complaints from users about session timeout, anymore. The money saved by scrapping the load balancer will be put towards an Alpha IIS license. The load balancing mechanism offered by MS under IIS is way superior. Although, I haven't been able to make that transition yet (need a stable release from Alpha and will need a fair IIS subscription price!)

        Comment


          #5
          Re: Session not being set

          Yeah I unfortunately had to do a call with a third party company that costed a little moolah to get that information (was passed to them by ZH), but we did get it sorted out so I'm happy about that so I can get us moved to the new servers finally this weekend! Wish I had been a little more patient to get your wise words first though!

          My concerns aren't related to session timeouts as I am completely getting rid of session variables (just a long process because there a many places I used them). Really my hope is that the new server setup in the new DC with the newer load balancer and equipment will give me a performance boast. During heavy traffic times it seems the system can come to crawl and one or more of the instances will lock up causing a need for a drop of all clients on that instance so I am hoping this will help prevent that (this issue also very much affects my mobile app users who aren't the most tech savvy so one something doesn't save and sync in half a second they think it's broken).

          I am also very interested in the IIS since I keep seeing so much information about it and would be curious what you feel makes it the far superior choice as far as load balancing is concerned (whether your words or some good resources).

          Thanks again Rich!

          Comment


            #6
            Re: Session not being set

            If you are using Alpha's integrated security mechanism then it may not matter if you eliminate your use of session variables; you may still have issues when using a load balancer. If you want to use a load balancer then I suggest contacting Steve Wood at iadn.com. He may have a better load balancer than what ZH is using that he can sell you. Steve has been working with a load balancer that does a better job at keeping users attached to the alpha instance they logged in with.

            If the load balancer redirects a request from an already logged in user to a different Alpha WAS instance then the other instance will believe that users has no permission and is not logged in. Depending on what the request was they will either be redirected to an "access denied" page, shown some other message, or nothing at all will happen. This is because traditional WAS does not share session information across multiple instances. If you run the IIS Alpha Server version then you can opt for session storage to be held in a SQL database. All instances of alpha will have access to same session info. Therefore, a user could be bounced around between different instances without any issue. Unless you are frequently changing the value of session variables and you run into a timing problem. Session variables are best used for information that only needs to be set once during the login process. Also, under IIS when a alpha instance fails another is started by IIS to take its place. Since session storage is maintained in SQL , most users won't notice any problem; only the few users that were actively transmitting to the server during the crash will have a problem. With a load balancer from ZH you probably also have "AlwaysUp" installed. There is no need for AlwaysUp under IIS Alpha; as IIS performs that function for you. When ZH setup AlwaysUp for me a couple of years ago, I found out AlwaysUp had to configured with a periodic call to a batch file to determine if AA had frozen. That whole thing was rather inefficient and triggered error messages in the AA logs. I have not checked what happens under IIS, but I suspect IIS is much cleaner.

            Comment


              #7
              Re: Session not being set

              Yeah I’m planning to handle the user security on my own once I have the information I need from the server to really get rid of the need for anything alpha related but not being well versed in how servers or the WAS operate I don’t want to get in a situation where I don’t have any help fixing issues that are over my head haha

              Definitely like the idea of how the IIS works, is this something that Zebrahost is capable of if the license is purchased or is this something I’d have to take on on my own other than going through Alpha Cloud?

              Comment


                #8
                Re: Session not being set

                Might as well install Alpha IIS yourself, it is just a matter of running the installer. You can install it locally in demo mode, without a license, on your development computer to test.

                Alpha has documentation to walk you through the process of installing Alpha IIS and publishing an application to IIS. There are many places for things to go wrong. Just follow the instructions the best you can. Start with everything on one computer (Alpha Developer IDE, Alpha IIS, IIS, SQL database) and follow Alpha's instructions for converting one of their sample apps to IIS. You will get a good idea of the steps. The tricky part is creating a publishing profile with all the right connection string information. It is easier if you use SQL users with full permissions.
                There are some tips on iadn.com for going to Alpha IIS.
                Last edited by RichCPT; 08-27-2018, 07:22 PM.

                Comment

                Working...
                X