Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Posts
    37
    Plugin Contributions
    0

    Default Custom script logs out

    Good afternoon,

    One of our custom made scripts logs us out when accessing this page (back office).
    There is something strange about this:
    1. The usage of linking is like others: zen_href_link('page','','NONSSL')
    2. The link looks the same like others (in the code, e.g. it shows zenAdminId="" )
    3. It doesn't occur at other pages which are written with the same style and usage of links.

    Code Example:
    <a href="<?php echo zen_href_link('accounting_tool.php?order=order_total&sort=' . ($_GET['sort'] == 'desc' ? 'asc' : 'desc'), 'NONSSL'); ?>

    Is there anything that should be done differently?

    I am awaiting your reply, thanks in advance.

    Streetglow.

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Custom script logs out

    Your link should look more like this:

    <a href="<?php echo zen_href_link('accounting_tool', 'order=order_total&sort=' . ($_GET['sort'] == 'desc' ? 'asc' : 'desc')); ?>">LINK TEXT</a>

    The coding will handle the .php extension, and the parameters should go in the second variable, rather than sending the whole URL in the first variable. Finally, you can leave out the NONSSL, as this is the default set within the function, and if left blank, will automatically default to a non-secure page.

    Hope this helps,

    Absolute

 

 

Similar Threads

  1. EP Import logs me out
    By hamid84 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 25 Jul 2010, 07:14 PM
  2. Admin logs out
    By paul-h in forum Basic Configuration
    Replies: 2
    Last Post: 21 May 2010, 02:30 PM
  3. Banner Manager Logs me Out
    By crankytech in forum Bug Reports
    Replies: 17
    Last Post: 6 Jul 2007, 02:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg