Jump to content

A bypass for using long URLs required for sharing


premdg

Recommended Posts

Hi,

 

 

I have question on long URLs.

In my application I need to pass parameters such as whatever.php?list=34,23,20,23..................

 

This list of numbers can be *very* large, and therefore PHP will complain saying URL is too long. A solution to this is to store this list in a SESSION variable. However, I want to allow users to share these links, i.e. that a user can just pass the URL to another person and he/she can still get the same. Using a SESSION variable will mean that I can not share.

 

Is there a solution to this? Something so I can just pass an ID which is unique to the 'list' given, so given the much shorter ID I can then find out what the 'list' was?

 

 

Thanks

  Prem

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.