-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.php
More file actions
30 lines (28 loc) · 783 Bytes
/
main.php
File metadata and controls
30 lines (28 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* Created by WebSee.
* User: SergeyTigrov
* Date: 30.05.12
* Time: 12:15
*/
$domain = 'domain.com';
return array(
'components'=>array(
'user'=>array(
'class' => 'WebUser',
'loginUrl' => array('user/login'),
//defaultReturnUrl is used instead of returnUrl
'defaultReturnUrl' => array('user'),
// enable cookie-based authentication
'allowAutoLogin'=>true,
'autoRenewCookie'=>true,
'identityCookie' => array('domain' => '.'.$domain),
),
'session' => array(
'class' => 'Session',
'connectionID' => 'db',
'cookieParams' => array('domain' => '.'.$domain),
'autoStart' => false,
),
}
}