Changeset 342 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Oct 12, 2011, 1:13:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r331 r342 1886 1886 addToMap(_tmpMaps->content,"soap","false"); 1887 1887 if(cgiCookie!=NULL && strlen(cgiCookie)>0){ 1888 addToMap(_tmpMaps->content,"sessid",strstr(cgiCookie,"=")+1); 1888 char *tcook=strdup(cgiCookie); 1889 if(strstr(cgiCookie,";")>0){ 1890 char *token,*saveptr; 1891 token=strtok_r(cgiCookie,";",&saveptr); 1892 while(token!=NULL){ 1893 if(strcasestr(token,"ID")!=NULL){ 1894 if(tcook!=NULL) 1895 free(tcook); 1896 tcook=strdup(token); 1897 } 1898 token=strtok_r(NULL,";",&saveptr); 1899 } 1900 } 1901 addToMap(_tmpMaps->content,"sessid",strstr(tcook,"=")+1); 1889 1902 char session_file_path[1024]; 1890 1903 map *tmpPath=getMapFromMaps(m,"main","sessPath"); 1891 1904 if(tmpPath==NULL) 1892 1905 tmpPath=getMapFromMaps(m,"main","tmpPath"); 1893 char *tmp1=strtok( cgiCookie,";");1906 char *tmp1=strtok(tcook,";"); 1894 1907 if(tmp1!=NULL) 1895 1908 sprintf(session_file_path,"%s/sess_%s.cfg",tmpPath->value,strstr(tmp1,"=")+1); 1896 1909 else 1897 1910 sprintf(session_file_path,"%s/sess_%s.cfg",tmpPath->value,strstr(cgiCookie,"=")+1); 1898 1911 free(tcook); 1899 1912 maps *tmpSess=(maps*)calloc(1,MAPS_SIZE); 1900 1913 struct stat file_status;
Note: See TracChangeset
for help on using the changeset viewer.