close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

More Session during login

Thread began 3/03/2016 12:29 am by Kumel | Last modified 3/03/2016 9:42 am by Ray Borduin | 530 views | 1 replies |

Kumel

More Session during login

There are two tables:

Users & Companies
Users: ID, Name, Email, Password, ComID & etc...
Companies: ID, CompanyName, CompanyStatus

CompanyStatus value by default is 1.

So lets say i want to ban all users to login, under a company by changing CompanyStatus to '2'
So how do we do this?
FYI, During User Login following session are stored: ID(from Users), CompanyID(from users)

Now i need to store session from different db ie Companies.

So how many SecurityAssist Authenticate user i need to create on login page?

Currently i added one SecurityAssist Authenticate user. then under DB tab, table as Companies, ID = <?php echo $_SESSION['CompanyID']; ?>

Under Session tabs CompanyStatus = CompanyStatus (Session Name)

Then from SE rule, i added restrict <?php echo $_SESSION['CompanyStatus']; ?> whose CompanyStatus = 2.

I might have missed something. Please help. Login page attached.

Sign in to reply to this post

Ray BorduinWebAssist

This will take some hand coding to work out. You would either have to edit the webassist/security_assist/helper_php.php file so that it can join two tables... or remove the success redirect add another recordset below the login code to look up the company information and save the session variable and then redirect based on the CompanyStatus returned from that recordset.

We could help with this in a premium support ticket.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...