Wiki articles tagged with "session"

Showing 1-7 of 7 items.

Make the authentication more securely

Created 10 years ago by Kostas Apazidis (KonApaz), updated 10 years ago by Kostas Apazidis (KonApaz).

Suppose a hacker has an account of your website He could set the PHPSESSID to empty After of that He login in your system The PHPSESSID remains blank and user has already logged with this session

2 0
3 followers
Viewed: 16 145 times
Version: 1.1
Category: Tutorials

Checking for "expired" sessions/logins on the client side

Created 11 years ago by le_top, updated 9 years ago by le_top.

Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

4 0
12 followers
Viewed: 36 440 times
Version: 1.1
Category: How-tos

Show captcha after <N> unsuccessfull attempts

Created 12 years ago by zitter, updated 12 years ago by zitter.

In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

13 4
15 followers
Viewed: 35 312 times
Version: 1.1
Category: How-tos

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 12 years ago by Rutger, updated 7 years ago by Rutger.

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 37 430 times
Version: 1.1
Category: How-tos

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Created 12 years ago by c@cba, updated 12 years ago by c@cba.

In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this.
We implement an event handler for the onBeginRequest event; as the nam...

9 0
19 followers
Viewed: 50 579 times
Version: 1.1
Category: Tutorials

How to validate CSRF token with session

Created 13 years ago by yangmls, updated 13 years ago by yangmls.

First of all, You must change component config to enable the default Yii CSRF validation.

21 0
27 followers
Viewed: 102 501 times
Version: 1.1
Category: How-tos
Tags: CSRF, session

Single sign on across multiple subdomains

Created 13 years ago by ianaré, updated 13 years ago by ianaré.

This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

29 0
37 followers
Viewed: 65 285 times
Version: 1.1
Category: How-tos