Gossamer Forum
Home : Products : DBMan : Customization :

Can I turn off the expiration for certain login names

Quote Reply
Can I turn off the expiration for certain login names
Carol,

I need to turn off the expiration for certain login names so that I can link directly to an interesting post. Is there any way to turn off the expiration
--------------------------
Oops, there was a problem logging into the system: invalid/expired user session.

Thanks
Quote Reply
Re: Can I turn off the expiration for certain login names In reply to
This would be extremely complicated to do. The reason you get the "expired" login session is that, after a certain amount of time, the session file for the login (which is created in the auth directory) is deleted. You would need to create a list of the logins you don't want to be deleted and do a lot of manipulation of sub auth_cleanup in the auth.pl file. This is something I don't want to get into.

This also is a very bad idea from a security viewpoint. If you created a link that used the login for a user, any other user who used that link would be able to modify or delete the original user's records.

My guess is there is a better way of doing this, but I would need to know more about what you're trying to accomplish before I could give you any ideas.


------------------
JPD





Quote Reply
Re: Can I turn off the expiration for certain login names In reply to
jp,
I would be linking from a "guest" type user account to the records, so the security issue is not a problem.

Is there anyway that I can create a login, that could not be deleted? Maybe by copying the old login form, and then putting it into a read only directory?

Is there anyway that I could modify the form that is created that stores my login info, so that it would not be deleted?
Quote Reply
Re: Can I turn off the expiration for certain login names In reply to
It would be better to use a "default" user than to have a guest login.

As for your own login information, here's what I did.

I created a bookmark in my browser as follows:

http://URL/to/db.cgi?db=default&userid=MyUserid&pw=MyPassword&login=1

This logs me into the database and takes me directly to the DBMan home page.


------------------
JPD





Quote Reply
Re: Can I turn off the expiration for certain login names In reply to
http://www.heritageantiquemaps.com/auction/orders/database/db.pl?db=default&uid=guest.93922596091916&ID=
Quote Reply
Re: Can I turn off the expiration for certain login names In reply to
http://www.heritageantiquemaps.com/auction/orders/database/db.pl?db=default&uid=guest.guest&ID=1

Does not work because the ID is expired. Could you please explain how yours works?
Quote Reply
Re: Can I turn off the expiration for certain login names In reply to
http://www.heritageantiquemaps.com/auction/orders/database/db.pl?db=default&uid=default

Except that you'll have to allow default users to access your database. Set it in the .cfg file --

$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);

After you do that, if you want to link to a specific record, use

http://www.heritageantiquemaps.com/auction/orders/database/db.pl?db=default&uid=default&ID=1&ww=1&view_records=1

You'll need to add &ww=1, or you will also get record 10, 11, 12, 21, 31, 100 -- anything that has a 1 in the ID.



------------------
JPD





Quote Reply
Re: Can I turn off the expiration for certain login names In reply to
Thanks JP , I will give it a try!

Greg