Announcement

Collapse
No announcement yet.

Hard coded links and registered, logged in customers

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

    Hard coded links and registered, logged in customers

    Hi

    Has anyone noticed any problems with logged in customers following hard coded links? When such a customer follows a link like this on my site, lo & behold, they no longer appear to be viewing the relevant content (ie products only non-registered customers should have access to)
    It's fine if they navigate there via Actinics own links.

    Anyone know of a work around for this?

    Ta!

    Steve Robertson

    #2
    Yes, there is a problem. A link that just points to an HTML page will log the customer out.

    Use links that go via perl scripts as these will work for all customers. These links are of the format....

    http://your.URL/cgi-bin/ss00000x.pl?PRODREF=12345&NOLOGIN=1
    Where:
    · http://your.URL/cgi-bin is the URL of your CGI-BIN
    · ss00000x.pl is the name of your search script with the 'x' replaced with your CGI ID number
    · 12345 is the product reference of your desired product.
    · &NOLOGIN=1 is an essential thing to add to the end of the URL to order to bypass the login page


    or if you want to link to section pages rather than URLs, then you will simply need to use SECTIONID= followed by the filename of the section page, rather than PRODREF= . e.g.

    http://your.URL/cgi-bin/ss00000x.pl?SECTIONID=Section%5fPage%2ehtml&NOLOGIN=1

    Note that you have to encode any non-alphanumeric characters so an underscore '_' becomes '%5f' and a full stop '.' becomes '%2e'.

    Comment


      #3
      Thanks Chris

      Hit a small snag though. I'm finding that the link text doesn't appear, but the product price (Where the link is within the full description of a.n. product) is highlighted as a link. This "link" functions OK, but is obviously a bit wierd....(see attached JPG screenshot)

      Here's an example of the code that is producing this effect:

      !!<<a href="http://www.gearshift.co.uk/cgi-bin/ss000002.pl?PRODREF=B902R4&NOLOGIN=1>Basta Rack mounted rear light</a>>!!

      Am I doing something obviously wrong?


      Steve
      Attached Files

      Comment


        #4
        An easy one to fix. You are missing a quote mark at the end of the URL.

        Comment


          #5
          DOH!

          Thanks Chris!

          One day I'll look before I open my mouth!

          Steve

          Comment

          Working...
          X