close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding new users whilst logged in, logs in new user

Thread began 7/27/2011 12:45 pm by iainmacdonald331081 | Last modified 7/27/2011 2:36 pm by Jason Byrnes | 620 views | 4 replies |

iainmacdonald331081

Adding new users whilst logged in, logs in new user

If that makes any sense....

Basically I have pretty much all of this working now.

I have pages for members of the public to register, and I have pages for admin users to log in and view details of the members of the public who have registered.

I've created pages within the admin section for existing admin users to create new admin users.

However, when someone is logged in, and they create a new admin users, the newly created admin user becomes the current logged in user.

Should I be able to change this so that it keeps the person adding the new user logged in, rather than switching to the newly created user?

You can see what I mean here:

gsg_registration/

You can log in with dummy and dummy.

Thank you.

Sign in to reply to this post

iainmacdonald331081

Here's a copy of the file, minus the line that references the database.

Sign in to reply to this post

Jason ByrnesWebAssist

the currently logged in user is determined by a session variable that is set by the log in page.


in the insert behavior, the id of the record that is created will also be stored in a session variable.

I would bet that the name of the session that the Login page creates is the smae name as the one the insert creates.

on the insert page, change the following line:

$WA_sessionName = "SecurityAssist_UserID";


to:
$WA_sessionName = "insert_SecurityAssist_UserID";


so that it is creating a session with a different name.

Sign in to reply to this post

iainmacdonald331081

Thanks Jason - that's exactly what I was after.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...