Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1069845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:28:50+00:00 2026-05-16T20:28:50+00:00

So, we have a very large and complex website that requires a lot of

  • 0

So, we have a very large and complex website that requires a lot of state information to be placed in the URL. Most of the time, this is just peachy and the app works well. However, there are (an increasing number of) instances where the URL length gets reaaaaallllly long. This causes huge problems in IE because of the URL length restriction.

I’m wondering, what strategies/methods have people used to reduce the length of their URLs? Specifically, I’d just need to reduce certain parameters in the URL, maybe not the entire thing.

In the past, we’ve pushed some of this state data into session… however this decreases addressability in our application (which is really important). So, any strategy which can maintain addressability would be favored.

Thanks!

Edit: To answer some questions and clarify a little, most of our parameters aren’t an issue… however some of them are dynamically generated with the possibility of being very long. These parameters can contain anything legal in a URL (meaning they aren’t just numbers or just letters, could be anything). Case sensitivity may or may not matter.

Also, ideally we could convert these to POST, however due to the immense architectural changes required for that, I don’t think that is really possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:28:50+00:00Added an answer on May 16, 2026 at 8:28 pm

    most of our parameters aren’t an issue… however some of them are dynamically generated with the possibility of being very long

    I don’t see a way to get around this if you want to keep full state info in the URL without resorting to storing data in the session, or permanently on server side.

    You might save a few bytes using some compression algorithm, but it will make the URLs unreadable, most algorithms are not very efficient on small strings, and compressing does not produce predictable results.

    The only other ideas that come to mind are

    • Shortening parameter names (query => q, page=> p…) might save a few bytes

    • If the parameter order is very static, using mod_rewritten directory structures /url/param1/param2/param3 may save a few bytes because you don’t need to use parameter names

    • Whatever data is repetitive and can be “shortened” back into numeric IDs or shorter identifiers (like place names of company branches, product names, …) keep in an internal, global, permanent lookup table (London => 1, Paris => 2…)

    Other than that, I think storing data on server side, identified by a random key as @Guido already suggests, is the only real way. The up side is that you have no size limit at all: An URL like

    example.com/?key=A23H7230sJFC
    

    can “contain” as much information on server side as you want.

    The down side, of course, is that in order for these URLs to work reliably, you’ll have to keep the data on your server indefinitely. It’s like having your own little URL shortening service… Whether that is an attractive option, will depend on the overall situation.

    I think that’s pretty much it!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large file that looks like this (see below). I have
I have a very large code base that contains extensive unit tests (using CppUnit).
I have a very large codebase (read: thousands of modules) that has code shared
I have a very large query that follows the format below: select ... from
I have a very large possible data set that I am trying to visualize
I have a very large, complex (million+ LOC) Windows application written in C++. We
I have to write a very large test suite for a complex set of
So I have an application which requires very fast access to large volumes of
I have written a very complex database migration script in Groovy, that runs just
We have some very large data files (5 gig to 1TB) where we need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.